gdi32: Fix DIB_PAL_INDICES usage handling in EMR_CREATEMONOBRUSH playback.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55177
This commit is contained in:
Piotr Caban 2023-07-07 14:17:34 +02:00 committed by Alexandre Julliard
parent 8ac9be458b
commit ef7b183984

View file

@ -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;