void MapWindow::DrawWaypointPictoBg(LKSurface& Surface, const RECT& rc) { if (!hLKPictori) return; const int cx = rc.right - rc.left; const int cy = rc.bottom - rc.top; const int x = rc.left; const int y = rc.top; #ifdef USE_GDI // TODO : replace by real size of Bitmap const int cxSrc = UseHiresBitmap?100:45; const int cySrc = UseHiresBitmap?100:45; #else const int cxSrc = hLKPictori.GetWidth(); const int cySrc = hLKPictori.GetHeight(); #endif Surface.DrawBitmapCopy(x, y, cx, cy, hLKPictori, cxSrc, cySrc); }