Alexandre Julliard : user32: Reduce the cursor height if it also includes the mask.

Alexandre Julliard julliard at winehq.org
Mon Jul 24 15:51:20 CDT 2017


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jul 24 13:12:50 2017 +0200

user32: Reduce the cursor height if it also includes the mask.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index f408c22..1fbec2a 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -633,6 +633,7 @@ static BOOL CURSORICON_GetResCursorEntry( LPCVOID dir, DWORD size, int n,
     *width = cursor->wWidth;
     *height = cursor->wHeight;
     *bits = resdir->idEntries[n].wBitCount;
+    if (*height == *width * 2) *height /= 2;
     return TRUE;
 }
 




More information about the wine-cvs mailing list