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

View File

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