mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
winex11: Make sure we create valid bitmaps even for a 1x1 mask.
This commit is contained in:
parent
3bbb208f8e
commit
bd44f10496
1 changed files with 1 additions and 1 deletions
|
@ -1161,7 +1161,7 @@ static Cursor create_cursor( HANDLE handle )
|
|||
#endif
|
||||
|
||||
GetObjectW( info.hbmMask, sizeof(bm), &bm );
|
||||
if (!info.hbmColor) bm.bmHeight /= 2;
|
||||
if (!info.hbmColor) bm.bmHeight = max( 1, bm.bmHeight / 2 );
|
||||
|
||||
/* make sure hotspot is valid */
|
||||
if (info.xHotspot >= bm.bmWidth || info.yHotspot >= bm.bmHeight)
|
||||
|
|
Loading…
Reference in a new issue