Zebediah Figura : user32: Blit the right bitmap when stretching monochrome icons in CopyImage().

Alexandre Julliard julliard at winehq.org
Tue May 25 16:08:14 CDT 2021


Module: wine
Branch: master
Commit: d2259665b43817d13abe3c522ad69911467edd87
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d2259665b43817d13abe3c522ad69911467edd87

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon May 24 17:11:06 2021 -0500

user32: Blit the right bitmap when stretching monochrome icons in CopyImage().

Fixes: beb70a79e1d92ddb10a552dcc6c06a4139365566
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/cursoricon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index a923f2f8315..a225303f80f 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -3024,7 +3024,7 @@ HANDLE WINAPI CopyImage( HANDLE hnd, UINT type, INT desiredx,
                         release_user_handle_ptr( icon );
                         return 0;
                     }
-                    stretch_bitmap( info.hbmColor, frame->color, desiredx, desiredy * 2,
+                    stretch_bitmap( info.hbmMask, frame->mask, desiredx, desiredy * 2,
                                     frame->width, frame->height * 2 );
                 }
 




More information about the wine-cvs mailing list