[ros-diffs] [greatlrd] 28776: implement SetDeviceGammaRamp in gdi32 (leftdo check win32k if it implement or not)

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Sep 2 16:36:48 CEST 2007


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.c?rev=28776&r1=28775&r2=28776&view=diff
==============================================================================
--- 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;
 }
 
 




More information about the Ros-diffs mailing list