Mike McCormack : comctl32: Fix a regression.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 6 05:48:31 CST 2006


Module: wine
Branch: master
Commit: 83149b1d2c566bd1c32da61f7c0af931363ab42b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=83149b1d2c566bd1c32da61f7c0af931363ab42b

Author: Mike McCormack <mike at codeweavers.com>
Date:   Sun Nov  5 11:52:42 2006 +0900

comctl32: Fix a regression.

---

 dlls/comctl32/imagelist.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index a9f829d..5113054 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -2124,17 +2124,17 @@ ImageList_Remove (HIMAGELIST himl, INT i
 
         /* copy all images and masks prior to the "removed" image */
         if (i > 0) {
-            POINT pt;
+            SIZE sz;
 
             TRACE("Pre image copy: Copy %d images\n", i);
 
             SelectObject (hdcBmp, hbmNewImage);
-            imagelist_point_from_index(himl, i, &pt);
-            BitBlt (hdcBmp, 0, 0, pt.x, pt.y, himl->hdcImage, 0, 0, SRCCOPY);
+            imagelist_get_bitmap_size( himl, i, himl->cy, &sz );
+            BitBlt (hdcBmp, 0, 0, sz.cx, sz.cy, himl->hdcImage, 0, 0, SRCCOPY);
 
             if (himl->hbmMask) {
                 SelectObject (hdcBmp, hbmNewMask);
-                BitBlt (hdcBmp, 0, 0, pt.x, pt.y, himl->hdcMask, 0, 0, SRCCOPY);
+                BitBlt (hdcBmp, 0, 0, sz.cx, sz.cy, himl->hdcMask, 0, 0, SRCCOPY);
             }
         }
 




More information about the wine-cvs mailing list