Commit ef7b1839 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdi32: Fix DIB_PAL_INDICES usage handling in EMR_CREATEMONOBRUSH playback.

parent 8ac9be45
......@@ -1848,7 +1848,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
/* Need to check if the bitmap is monochrome, and if the
two colors are really black and white */
if (is_dib_monochrome(pbi))
if (pCreateMonoBrush->iUsage == DIB_PAL_INDICES || is_dib_monochrome(pbi))
{
/* Top-down DIBs have a negative height */
LONG height = pbi->bmiHeader.biHeight;
......
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