controls static.c

Ge van Geldorp ge at gse.nl
Tue Feb 10 09:15:57 CST 2004


Changelog:
  Set upper-left corner of destination to (0, 0), using GetBitmapDimensionEx
  doesn't make sense.

Index: static.c
===================================================================
RCS file: /home/wine/wine/controls/static.c,v
retrieving revision 1.46
diff -u -r1.46 static.c
--- static.c	10 Dec 2003 04:14:35 -0000	1.46
+++ static.c	10 Feb 2004 15:11:40 -0000
@@ -568,14 +568,12 @@
     if ((hBitmap = (HBITMAP)GetWindowLongA( hwnd, HICON_GWL_OFFSET )))
     {
         BITMAP bm;
-	SIZE sz;
 
         if(GetObjectType(hBitmap) != OBJ_BITMAP) return;
         if (!(hMemDC = CreateCompatibleDC( hdc ))) return;
 	GetObjectW(hBitmap, sizeof(bm), &bm);
-	GetBitmapDimensionEx(hBitmap, &sz);
 	oldbitmap = SelectObject(hMemDC, hBitmap);
-	BitBlt(hdc, sz.cx, sz.cy, bm.bmWidth, bm.bmHeight, hMemDC, 0, 0,
+	BitBlt(hdc, 0, 0, bm.bmWidth, bm.bmHeight, hMemDC, 0, 0,
 	       SRCCOPY);
 	SelectObject(hMemDC, oldbitmap);
 	DeleteDC(hMemDC);



More information about the wine-patches mailing list