[PATCH] user32: In CURSORICON_FindBestCursor scale cursor correctly
Fabian Maurer
dark.shadow4 at web.de
Mon Jul 24 15:51:17 CDT 2017
Fixes Bug 43424.
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
dlls/user32/cursoricon.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index f408c22909..2623a4a71f 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -565,6 +565,13 @@ static int CURSORICON_FindBestCursor( LPCVOID dir, DWORD size, fnGetCIEntry get_
{
if (!width) width = GetSystemMetrics( SM_CXCURSOR );
if (!height) height = GetSystemMetrics( SM_CYCURSOR );
+
+ /* If cursor is non quadratic, adjust the size so it scales correct */
+
+ get_entry( dir, size, 0, &cx, &cy, &bits );
+
+ if(cy == cx * 2)
+ height *= 2;
}
else if (!width && !height)
{
--
2.13.3
More information about the wine-patches
mailing list