https://bugs.winehq.org/show_bug.cgi?id=40913
--- Comment #3 from Dmitry Timoshkov dmitry@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?