Commit b0f66504 authored by Shawn M. Chapla's avatar Shawn M. Chapla Committed by Alexandre Julliard

gdiplus: Set GDI world xform to the identity xform on acquisition.

parent 83034c94
...@@ -6789,6 +6789,7 @@ GpStatus gdi_transform_acquire(GpGraphics *graphics) ...@@ -6789,6 +6789,7 @@ GpStatus gdi_transform_acquire(GpGraphics *graphics)
if (graphics->gdi_transform_acquire_count == 0 && graphics->hdc) if (graphics->gdi_transform_acquire_count == 0 && graphics->hdc)
{ {
graphics->gdi_transform_save = SaveDC(graphics->hdc); graphics->gdi_transform_save = SaveDC(graphics->hdc);
ModifyWorldTransform(graphics->hdc, NULL, MWT_IDENTITY);
SetGraphicsMode(graphics->hdc, GM_COMPATIBLE); SetGraphicsMode(graphics->hdc, GM_COMPATIBLE);
SetMapMode(graphics->hdc, MM_TEXT); SetMapMode(graphics->hdc, MM_TEXT);
SetWindowOrgEx(graphics->hdc, 0, 0, NULL); SetWindowOrgEx(graphics->hdc, 0, 0, NULL);
......
...@@ -7012,7 +7012,7 @@ static void test_gdi_interop_hdc(void) ...@@ -7012,7 +7012,7 @@ static void test_gdi_interop_hdc(void)
expect(0x00aa00ff, bits[6 * 100 + 6]); expect(0x00aa00ff, bits[6 * 100 + 6]);
expect(0x00aa00ff, bits[26 * 100 + 26]); expect(0x00aa00ff, bits[26 * 100 + 26]);
expect(0x00aa00ff, bits[36 * 100 + 36]); expect(0x00aa00ff, bits[36 * 100 + 36]);
todo_wine expect(0xffaa00ff, bits[86 * 100 + 86]); expect(0xffaa00ff, bits[86 * 100 + 86]);
DeleteDC(src_hdc); DeleteDC(src_hdc);
DeleteObject(hbm); DeleteObject(hbm);
......
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