Module: wine Branch: master Commit: 108a63367731d5b59a7280e8f32fc4a135d30332 URL: http://source.winehq.org/git/wine.git/?a=commit;h=108a63367731d5b59a7280e8f3...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Fri Nov 8 16:33:46 2013 +0900
gdiplus: Use flags 0 for an empty path in region to follow Windows7+ behaviour.
---
dlls/gdiplus/region.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c index 9ac3124..4cd9636 100644 --- a/dlls/gdiplus/region.c +++ b/dlls/gdiplus/region.c @@ -426,7 +426,7 @@ GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *path, GpRegion **region) { region_element* element; GpStatus stat; - DWORD flags = FLAGS_INTPATH; + DWORD flags; INT count, i;
TRACE("%p, %p\n", path, region); @@ -446,6 +446,8 @@ GpStatus WINGDIPAPI GdipCreateRegionPath(GpPath *path, GpRegion **region) element = &(*region)->node; count = path->pathdata.Count;
+ flags = count ? FLAGS_INTPATH : FLAGS_NOFLAGS; + /* Test to see if the path is an Integer path */ for (i = 0; i < count; i++) {