From a3be8dee2eea8fb660c07fb6ca8a8bea2e0a190e Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sun, 20 Jul 2003 00:42:55 +0000 Subject: [PATCH] Implemented Unpluged DC code svn path=/trunk/; revision=5171 --- reactos/lib/gdi32/misc/stubs.c | 31 +------------------------------ reactos/lib/gdi32/objects/dc.c | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 31 deletions(-) diff --git a/reactos/lib/gdi32/misc/stubs.c b/reactos/lib/gdi32/misc/stubs.c index 231600bd125..d5fdf597d54 100644 --- a/reactos/lib/gdi32/misc/stubs.c +++ b/reactos/lib/gdi32/misc/stubs.c @@ -1,4 +1,4 @@ -/* $Id: stubs.c,v 1.24 2003/07/20 00:33:55 jimtabor Exp $ +/* $Id: stubs.c,v 1.25 2003/07/20 00:42:55 jimtabor Exp $ * * reactos/lib/gdi32/misc/stubs.c * @@ -510,20 +510,6 @@ GetFontData( } -/* - * @unimplemented - */ -int -STDCALL -GetGraphicsMode( - HDC a0 - ) -{ - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; -} - - /* * @unimplemented */ @@ -1076,21 +1062,6 @@ SetMapperFlags( } -/* - * @unimplemented - */ -int -STDCALL -SetGraphicsMode( - HDC hdc, - int iMode - ) -{ - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; -} - - /* * @unimplemented */ diff --git a/reactos/lib/gdi32/objects/dc.c b/reactos/lib/gdi32/objects/dc.c index 679329e7e2c..b90e29c6a1e 100644 --- a/reactos/lib/gdi32/objects/dc.c +++ b/reactos/lib/gdi32/objects/dc.c @@ -8,6 +8,33 @@ #include +/* + * @implemented + */ +int +STDCALL +GetGraphicsMode( + HDC a0 + ) +{ + return W32kGetGraphicsMode(a0); +} + + +/* + * @implemented + */ +int +STDCALL +SetGraphicsMode( + HDC hdc, + int iMode + ) +{ + return W32kSetGraphicsMode(hdc, iMode); +} + + /* * @implemented */ @@ -59,7 +86,6 @@ GetBkMode( return W32kGetBkMode(a0); } - /* * @implemented */