Module: wine Branch: master Commit: c579d474a4a370547c16ef265b3630135df42b13 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c579d474a4a370547c16ef265b...
Author: Francois Gouget fgouget@free.fr Date: Sat Jan 6 19:30:19 2007 +0100
gdi32/tests: Tweak a test to avoid an '#if 0'.
---
dlls/gdi32/tests/dc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c index 59555fa..72cd155 100644 --- a/dlls/gdi32/tests/dc.c +++ b/dlls/gdi32/tests/dc.c @@ -90,17 +90,17 @@ todo_wine }
ret = IntersectClipRect(hdc, 0, 0, 50, 50); -#if 0 /* XP returns COMPLEXREGION although dump_region reports only 1 rect */ - ok(ret == SIMPLEREGION, "IntersectClipRect returned %d instead of SIMPLEREGION\n", ret); -#endif - if (ret != SIMPLEREGION) + if (ret == COMPLEXREGION) { + /* XP returns COMPLEXREGION although dump_region reports only 1 rect */ trace("Windows BUG: IntersectClipRect returned %d instead of SIMPLEREGION\n", ret); /* let's make sure that it's a simple region */ ret = GetClipRgn(hdc, hrgn); ok(ret == 1, "GetClipRgn returned %d instead of 1\n", ret); dump_region(hrgn); } + else + ok(ret == SIMPLEREGION, "IntersectClipRect returned %d instead of SIMPLEREGION\n", ret);
ret = GetClipBox(hdc, &rc_clip); ok(ret == SIMPLEREGION, "GetClipBox returned %d instead of SIMPLEREGION\n", ret);