LoadImageW fixed for hicolor displays.

This commit is contained in:
Pavel Roskin 1999-05-01 10:41:02 +00:00 committed by Alexandre Julliard
parent 89b1fc98ff
commit ffd5e82b97
1 changed files with 3 additions and 1 deletions

View File

@ -439,10 +439,12 @@ HANDLE WINAPI LoadImageW( HINSTANCE hinst, LPCWSTR name, UINT type,
{
HDC hdc = GetDC(0);
UINT palEnts = GetSystemPaletteEntries(hdc, 0, 0, NULL);
if (palEnts == 0)
palEnts = 256;
ReleaseDC(0, hdc);
return CURSORICON_Load(hinst, name, desiredx, desiredy,
MIN(16, palEnts), FALSE, loadflags);
palEnts, FALSE, loadflags);
}
case IMAGE_CURSOR: