mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 12:59:55 +00:00
gdiplus: Fix background key.
This commit is contained in:
parent
7b300bae8a
commit
c6abeee9f0
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue