- Fix some indentation.

- Fix the loading of icon resources.
This commit is contained in:
Maxime Bellengé 2003-04-29 22:46:16 +00:00 committed by Alexandre Julliard
parent 6dca3ecc45
commit 711e1ba021
1 changed files with 12 additions and 12 deletions

View File

@ -24,7 +24,7 @@
/*
* Theory:
*
* http://www.microsoft.com/win32dev/ui/icons.htm
* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_icons.asp
*
* Cursors and icons are stored in a global heap block, with the
* following layout:
@ -327,7 +327,7 @@ static CURSORICONDIRENTRY *CURSORICON_FindBestIcon( CURSORICONDIR *dir, int widt
if(abs(width - entry->ResInfo.icon.bWidth) == iXDiff &&
abs(height - entry->ResInfo.icon.bHeight) == iYDiff)
{
iTempColorDiff = abs(colors - entry->ResInfo.icon.bColorCount);
iTempColorDiff = abs(colors - (1<<entry->wBitCount));
if(iColorDiff > iTempColorDiff)
{
bestEntry = entry;