mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Explicitly ask for image list with screen depth as ILC_COLOR can/will
limit the depth to 4bpp now.
This commit is contained in:
parent
e9871b0b68
commit
c11d8b00d6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user