Commit ce345683 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

We want all 1bpp dibsections to have a monochrome bitmap and

everything else to be at the screen depth.
parent bb2796f9
......@@ -4647,7 +4647,9 @@ HBITMAP X11DRV_DIB_CreateDIBSection(
/* Create Device Dependent Bitmap and add DIB pointer */
if (dib)
{
res = CreateDIBitmap(physDev->hdc, bi, 0, NULL, bmi, usage);
int depth = (bi->biBitCount == 1) ? 1 : GetDeviceCaps(physDev->hdc, BITSPIXEL);
res = CreateBitmap(bi->biWidth, effHeight, 1, depth, NULL);
if (res)
{
bmp = (BITMAPOBJ *) GDI_GetObjPtr(res, BITMAP_MAGIC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment