gdiplus: Fix background key.

This commit is contained in:
Esme Povirk 2024-05-03 13:15:53 -05:00 committed by Alexandre Julliard
parent 7b300bae8a
commit c6abeee9f0
2 changed files with 4 additions and 4 deletions

View file

@ -6908,7 +6908,7 @@ GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST G
}
/* Color used to fill bitmaps so we can tell which parts have been drawn over by gdi32. */
static const COLORREF DC_BACKGROUND_KEY = 0x0c0b0d;
static const COLORREF DC_BACKGROUND_KEY = 0x0d0b0c;
GpStatus WINGDIPAPI GdipGetDC(GpGraphics *graphics, HDC *hdc)
{

View file

@ -2699,7 +2699,7 @@ static void test_fromMemoryBitmap(void)
color = GetPixel(hdc, 0, 0);
/* The HDC is write-only, and native fills with a solid color to figure out
* which pixels have changed. */
todo_wine expect(0x0c0b0d, color);
expect(0x0c0b0d, color);
SetPixel(hdc, 0, 0, 0x797979);
SetPixel(hdc, 1, 0, 0x0c0b0d);
@ -2710,7 +2710,7 @@ static void test_fromMemoryBitmap(void)
GdipDeleteGraphics(graphics);
expect(0x79, bits[0]);
todo_wine expect(0x68, bits[3]);
expect(0x68, bits[3]);
GdipDisposeImage((GpImage*)bitmap);
@ -2747,7 +2747,7 @@ static void test_fromMemoryBitmap(void)
ok(hdc != NULL, "got NULL hdc\n");
color = GetPixel(hdc, 0, 0);
todo_wine expect(0x0c0b0d, color);
expect(0x0c0b0d, color);
status = GdipReleaseDC(graphics, hdc);
expect(Ok, status);