Commit 37423cec authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Fix dibdrv_PutImage for the selected bitmap case.

parent 3a9fa902
......@@ -542,7 +542,10 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
dib = &stand_alone;
}
else
{
pdev = get_dibdrv_pdev( dev );
dib = &pdev->dib;
}
if (info->bmiHeader.biPlanes != 1) goto update_format;
if (info->bmiHeader.biBitCount != dib->bit_count) goto update_format;
......
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