Fixed cursor selection to find the correct cursor when more than one

available.
This commit is contained in:
Steve Tibbett 1999-08-15 16:35:21 +00:00 committed by Alexandre Julliard
parent 6374cd231c
commit 85692c8cbf
1 changed files with 4 additions and 0 deletions

View File

@ -310,6 +310,10 @@ static CURSORICONDIRENTRY *CURSORICON_FindBestCursor( CURSORICONDIR *dir,
}
if (dir->idCount == 1) return &dir->idEntries[0]; /* No choice... */
/* Double height to account for AND and XOR masks */
height *= 2;
/* First find the largest one smaller than or equal to the requested size*/
maxwidth = maxheight = 0;