[Bug 40913] EMF doesn't generate a default EMR_SETARCDIRECTION Record

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jul 5 09:11:35 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=40913

--- Comment #3 from Dmitry Timoshkov <dmitry at baikal.ru> ---
(In reply to Alistair Leslie-Hughes from comment #2)
> Created attachment 55014 [details]
> Simplified Testcase
> 
> This is the smallest test case I found to reproduce the issue.

+    mf = CreateEnhMetaFileA( GetDC( 0 ), NULL, NULL, NULL );
+    ok( mf != 0, "CreateEnhMetaFileA error %d\n", GetLastError() );
+
+    SetMapMode(mf, MM_ANISOTROPIC);
+    SetViewportExtEx(mf, 1, -1, &size);
+
+    /* A EMR_SETARCDIRECTION record is inserted here. */
+
+    ret = Arc(mf, 342, -215, 442, -315, 342, -265, 442, -265);
+    ok( ret, "Arc failed error %d\n", GetLastError() );

What happens if you don't call SetMapMode and/or SetViewportExtEx?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list