From 75fec6f6f993ec71fd20dac9e65e7543103fc50d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 26 Jul 2007 16:27:47 +0000 Subject: [PATCH] implement CreateEllipticRgnIndirect, calling NtGdiCreateEllipticRgn, instead of redirecting to NtGdiCreateEllipticRgnIndirect svn path=/trunk/; revision=27857 --- reactos/dll/win32/gdi32/gdi32.def | 2 +- reactos/dll/win32/gdi32/objects/region.c | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/gdi32/gdi32.def b/reactos/dll/win32/gdi32/gdi32.def index 620acaa6df7..19833e7d249 100644 --- a/reactos/dll/win32/gdi32/gdi32.def +++ b/reactos/dll/win32/gdi32/gdi32.def @@ -62,7 +62,7 @@ CreateDIBSection@24 CreateDIBitmap@24=NtGdiCreateDIBitmap@24 CreateDiscardableBitmap@12 CreateEllipticRgn@16=NtGdiCreateEllipticRgn@16 -CreateEllipticRgnIndirect@4=NtGdiCreateEllipticRgnIndirect@4 +CreateEllipticRgnIndirect@4 CreateEnhMetaFileA@16 CreateEnhMetaFileW@16 CreateFontA@56 diff --git a/reactos/dll/win32/gdi32/objects/region.c b/reactos/dll/win32/gdi32/objects/region.c index cab574b4061..45fe553b6f7 100644 --- a/reactos/dll/win32/gdi32/objects/region.c +++ b/reactos/dll/win32/gdi32/objects/region.c @@ -44,4 +44,15 @@ CreatePolyPolygonRgn( const POINT* Point, GdiPolyPolyRgn ); } - +HRGN +WINAPI +CreateEllipticRgnIndirect( + const RECT *prc +) +{ + if (prc) + { + return NtGdiCreateEllipticRgn(prc->left, prc->top, prc->right, prc->bottom); + } + return NULL; +}