Re: gdi32/tests: Add test for SelectClipRgn in metafile
4 Sep
2009
4 Sep
'09
4:58 p.m.
"Ilya Shpigor" <shpigor(a)etersoft.ru> wrote:
+ hdc = CreateEnhMetaFileA(0, NULL, NULL, NULL); + + SetRect(&rc_sclip, 100, 100, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN)); + hrgn = CreateRectRgn(rc_sclip.left, rc_sclip.top, rc_sclip.right, rc_sclip.bottom); + SelectClipRgn(hdc, hrgn); + GetClipBox(hdc, &rc_res); + todo_wine ok(EqualRect(&rc_res, &rc_sclip), + "expected rc_res (%d, %d) - (%d, %d), got (%d, %d) - (%d, %d)\n", + rc_sclip.left, rc_sclip.top, rc_sclip.right, rc_sclip.bottom, + rc_res.left, rc_res.top, rc_res.right, rc_res.bottom); + + CloseEnhMetaFile(hdc); + DeleteObject(hrgn);
You are leaking a metafile here. -- Dmitry.
5946
Age (days ago)
5946
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov