Author: greatlrd
Date: Sun Sep 2 18:36:48 2007
New Revision: 28776
URL:
http://svn.reactos.org/svn/reactos?rev=28776&view=rev
Log:
implement SetDeviceGammaRamp in gdi32 (leftdo check win32k if it implement or not)
Modified:
trunk/reactos/dll/win32/gdi32/misc/stubs.c
Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Sun Sep 2 18:36:48 2007
@@ -790,20 +790,26 @@
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-SetDeviceGammaRamp(
- HDC a0,
- LPVOID a1
- )
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+SetDeviceGammaRamp(HDC hdc,
+ LPVOID lpGammaRamp)
+{
+ BOOL retValue = FALSE;
+
+ if (lpGammaRamp)
+ {
+ retValue = NtGdiSetDeviceGammaRamp(hdc, lpGammaRamp);
+ }
+ else
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ }
+
+ return retValue;
}