mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-19 06:23:49 +00:00
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:
parent
8ac9be458b
commit
ef7b183984
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue