Explicitly ask for image list with screen depth as ILC_COLOR can/will

limit the depth to 4bpp now.
This commit is contained in:
Ge van Geldorp 2004-03-11 22:46:51 +00:00 committed by Alexandre Julliard
parent e9871b0b68
commit c11d8b00d6
1 changed files with 3 additions and 3 deletions

View File

@ -2280,10 +2280,10 @@ TOOLBAR_AddBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* create new default image list */
TRACE ("creating default image list!\n");
himlDef = ImageList_Create (infoPtr->nBitmapWidth, infoPtr->nBitmapHeight,
ILC_COLOR | ILC_MASK, nButtons, 2);
himlDef = ImageList_Create (infoPtr->nBitmapWidth, infoPtr->nBitmapHeight,
ILC_COLORDDB | ILC_MASK, nButtons, 2);
TOOLBAR_InsertImageList(&infoPtr->himlDef, &infoPtr->cimlDef, himlDef, 0);
infoPtr->himlInt = himlDef;
infoPtr->himlInt = himlDef;
}
else {
himlDef = GETDEFIMAGELIST(infoPtr, 0);