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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-07-24 13:12:50 +02:00
parent 8e9af9e016
commit d0e8170c90
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}