From 6dfe326b7b32005a2b5f522571e232208de83813 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 20 Jul 2003 00:13:36 +0000 Subject: [PATCH] Implemented Unpluged DC code svn path=/trunk/; revision=5169 --- reactos/lib/gdi32/objects/dc.c | 67 ++++++++++++++++++++++++++++++ reactos/lib/gdi32/objects/region.c | 20 +++++++++ 2 files changed, 87 insertions(+) diff --git a/reactos/lib/gdi32/objects/dc.c b/reactos/lib/gdi32/objects/dc.c index a7a658c8744..679329e7e2c 100644 --- a/reactos/lib/gdi32/objects/dc.c +++ b/reactos/lib/gdi32/objects/dc.c @@ -7,6 +7,73 @@ #include #include + +/* + * @implemented + */ +int +STDCALL +GetMapMode( + HDC a0 + ) +{ + return W32kGetMapMode(a0); +} + +/* + * @implemented + */ +BOOL +STDCALL +GetCurrentPositionEx( + HDC a0, + LPPOINT a1 + ) +{ + return W32kGetCurrentPositionEx(a0, a1); +} + + +/* + * @implemented + */ +COLORREF +STDCALL +GetBkColor( + HDC a0 + ) +{ + return W32kGetBkColor(a0); +} + + +/* + * @implemented + */ +int +STDCALL +GetBkMode( + HDC a0 + ) +{ + return W32kGetBkMode(a0); +} + + +/* + * @implemented + */ +BOOL +STDCALL +GetBrushOrgEx( + HDC a0, + LPPOINT a1 + ) +{ + return W32kGetBrushOrgEx(a0, a1); +} + + /* * @implemented */ diff --git a/reactos/lib/gdi32/objects/region.c b/reactos/lib/gdi32/objects/region.c index aba70bfdd83..f2be89d7e03 100644 --- a/reactos/lib/gdi32/objects/region.c +++ b/reactos/lib/gdi32/objects/region.c @@ -7,6 +7,26 @@ #include #include +/* + * @implemented + */ +int +STDCALL +GetClipRgn( + HDC a0, + HRGN a1 + ) +{ + HRGN rgn = W32kGetClipRgn(a0); + if(rgn) + { + if(W32kCombineRgn(a1, rgn, 0, RGN_COPY) != ERROR) return 1; + else + return -1; + } + else return 0; +} + /* * @unimplemented