gdi32: Always dither brush when painting to a 1-bpp device.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
103f2646d5
commit
80ae5c968e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue