- Fix some indentation.
- Fix the loading of icon resources.
This commit is contained in:
parent
6dca3ecc45
commit
711e1ba021
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* Theory:
|
* 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
|
* Cursors and icons are stored in a global heap block, with the
|
||||||
* following layout:
|
* following layout:
|
||||||
|
@ -327,7 +327,7 @@ static CURSORICONDIRENTRY *CURSORICON_FindBestIcon( CURSORICONDIR *dir, int widt
|
||||||
if(abs(width - entry->ResInfo.icon.bWidth) == iXDiff &&
|
if(abs(width - entry->ResInfo.icon.bWidth) == iXDiff &&
|
||||||
abs(height - entry->ResInfo.icon.bHeight) == iYDiff)
|
abs(height - entry->ResInfo.icon.bHeight) == iYDiff)
|
||||||
{
|
{
|
||||||
iTempColorDiff = abs(colors - entry->ResInfo.icon.bColorCount);
|
iTempColorDiff = abs(colors - (1<<entry->wBitCount));
|
||||||
if(iColorDiff > iTempColorDiff)
|
if(iColorDiff > iTempColorDiff)
|
||||||
{
|
{
|
||||||
bestEntry = entry;
|
bestEntry = entry;
|
||||||
|
|
Loading…
Reference in New Issue