Commit 80ae5c96 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Always dither brush when painting to a 1-bpp device.

parent 103f2646
......@@ -1933,7 +1933,7 @@ static BOOL select_pattern_brush( dibdrv_physdev *pdev, dib_brush *brush, BOOL *
BITMAPINFO *info = (BITMAPINFO *)buffer;
RGBQUAD color_table[2];
dib_info pattern;
BOOL dither = (brush->dib.bit_count == 1);
BOOL dither = (brush->dib.bit_count == 1) || (pdev->dib.bit_count == 1);
if (brush->pattern.info->bmiHeader.biClrUsed && brush->pattern.usage == DIB_PAL_COLORS)
{
......
......@@ -1753,7 +1753,7 @@ static void draw_graphics(HDC hdc, const BITMAPINFO *bmi, BYTE *bits)
y += 25;
}
}
compare_hash_broken_todo(hdc, bmi, bits, "top-down 8888 dib brush patblt", 0, dib_is_1bpp);
compare_hash(hdc, bmi, bits, "top-down 8888 dib brush patblt");
SelectObject(hdc, orig_brush);
DeleteObject(dib_brush);
......
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