Move more history api to the history file.
authorMagnus Olsen <magnus@greatlord.com>
Fri, 31 Aug 2007 16:17:28 +0000 (16:17 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Fri, 31 Aug 2007 16:17:28 +0000 (16:17 +0000)
follow api have been move
DdSwapTextureHandles aka gdientry16, GdiReleaseLocalDC, GdiDeleteLocalDC, DeviceCapabilitiesExA, DeviceCapabilitiesExW, FixBrushOrgEx to historic.c

svn path=/trunk/; revision=28713

reactos/dll/win32/gdi32/misc/gdientry.c
reactos/dll/win32/gdi32/misc/historic.c
reactos/dll/win32/gdi32/misc/misc.c
reactos/dll/win32/gdi32/misc/stubs.c
reactos/dll/win32/gdi32/misc/stubsa.c
reactos/dll/win32/gdi32/misc/stubsw.c
reactos/dll/win32/gdi32/objects/brush.c

index 17f47ee..1e38d97 100644 (file)
@@ -1033,20 +1033,7 @@ DdSetGammaRamp(LPDDRAWI_DIRECTDRAW_LCL pDDraw,
                                hdc,
                                lpGammaRamp);
 }
-/*
- * @implemented
- *
- * GDIEntry 16
- */
-DWORD
-WINAPI
-DdSwapTextureHandles(LPDDRAWI_DIRECTDRAW_LCL pDDraw,
-                     LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1,
-                     LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2)
-{
-    /* Always returns success */
-    return TRUE;
-}
+
 
 
 
index 2438645..0deb68d 100644 (file)
@@ -9,6 +9,11 @@
  */
 
 #include "precomp.h"
+#include <ddraw.h>
+#include <ddrawi.h>
+#include <ddrawint.h>
+#include <ddrawgdi.h>
+#include <ntgdi.h>
 
 /*
  * @implemented
@@ -65,6 +70,7 @@ HBITMAP
 STDCALL
 GdiConvertBitmap(HBITMAP hbm)
 {
+    /* Note Windows 2000/XP/VISTA always returns hbm */
     return hbm;
 }
 
@@ -75,6 +81,7 @@ HBRUSH
 STDCALL
 GdiConvertBrush(HBRUSH hbr)
 {
+    /* Note Windows 2000/XP/VISTA always returns hbr */
     return hbr;
 }
 
@@ -85,6 +92,7 @@ HDC
 STDCALL
 GdiConvertDC(HDC hdc)
 {
+    /* Note Windows 2000/XP/VISTA always returns hdc */
     return hdc;
 }
 
@@ -95,6 +103,7 @@ HFONT
 STDCALL
 GdiConvertFont(HFONT hfont)
 {
+    /* Note Windows 2000/XP/VISTA always returns hfont */
     return hfont;
 }
 
@@ -105,6 +114,7 @@ HPALETTE
 STDCALL
 GdiConvertPalette(HPALETTE hpal)
 {
+    /* Note Windows 2000/XP/VISTA always returns hpal */
     return hpal;
 }
 
@@ -115,6 +125,7 @@ HRGN
 STDCALL
 GdiConvertRegion(HRGN hregion)
 {
+    /* Note Windows 2000/XP/VISTA always returns hregion */
     return hregion;
 }
 
@@ -125,9 +136,22 @@ BOOL
 STDCALL
 GdiSetAttrs(HDC hdc)
 {
+    /* Note Windows 2000/XP/VISTA always returns TRUE */
     return TRUE;
 }
 
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+GdiDeleteLocalDC(HDC hdc)
+{
+    /* Note Windows 2000/XP/VISTA always returns TRUE */
+    return TRUE;
+}
+
+
 /*
  * @implemented
  */
@@ -139,5 +163,74 @@ GdiSetServerAttr(HDC hdc,DWORD attr)
 }
 
 
+/*
+ * @implemented
+ */
+int
+STDCALL
+DeviceCapabilitiesExA(LPCSTR pDevice,
+                      LPCSTR pPort,
+                      WORD fwCapability,
+                      LPSTR pOutput,
+                      CONST DEVMODEA *pDevMode)
+{
+    /* Note Windows 2000/XP/VISTA always returns -1 */
+    return -1;
+}
+
+/*
+ * @implemented
+ */
+int
+STDCALL
+DeviceCapabilitiesExW(LPCWSTR pDevice,
+                      LPCWSTR pPort,
+                      WORD fwCapability,
+                      LPWSTR pOutput,
+                      CONST DEVMODEW *pDevMode)
+{
+    /* Note Windows 2000/XP/VISTA always returns -1 */
+    return -1;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+FixBrushOrgEx(HDC hDC,
+              INT nXOrg,
+              INT nYOrg,
+              LPPOINT lpPoint)
+{
+    /* Note Windows 2000/XP/VISTA always returns FALSE */
+    return FALSE;
+}
+
+/*
+ * @implemented
+ *
+ * GDIEntry 16
+ */
+DWORD
+WINAPI
+DdSwapTextureHandles(LPDDRAWI_DIRECTDRAW_LCL pDDraw,
+                     LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1,
+                     LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2)
+{
+    /* Note Windows 2000/XP/VISTA always returns success */
+    return TRUE;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+GdiReleaseLocalDC(HDC hdc)
+{
+    /* Note Windows 2000/XP/VISTA always returns TRUE */
+    return TRUE;
+}
 
 
index 3f430db..a21c94d 100644 (file)
@@ -158,18 +158,6 @@ GdiGetBatchLimit()
     return GDI_BatchLimit;
 }
 
-
-/*
- * @implemented
- */
-BOOL
-STDCALL
-GdiReleaseLocalDC(HDC hdc)
-{
-       return TRUE;
-}
-
-
 /*
  * @unimplemented
  */
@@ -177,8 +165,7 @@ BOOL
 STDCALL
 GdiReleaseDC(HDC hdc)
 {
-       GdiReleaseLocalDC(hdc);
-       return 0;
+    return 0;
 }
 
 INT STDCALL
index 5df604b..4453ee6 100644 (file)
@@ -1350,18 +1350,6 @@ GdiConvertEnhMetaFile(HENHMETAFILE hmf)
        return 0;
 }
 
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-GdiDeleteLocalDC(HDC hdc)
-{
-       UNIMPLEMENTED;
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return 0;
-}
-
 /*
  * @unimplemented
  */
index 009f353..550c816 100644 (file)
 #define UNIMPLEMENTED DbgPrint("GDI32: %s is unimplemented, please try again later.\n", __FUNCTION__);
 
 
-/*
- * @implemented
- */
-int
-STDCALL
-DeviceCapabilitiesExA(
-       LPCSTR          pDevice,
-       LPCSTR          pPort,
-       WORD            fwCapability,
-       LPSTR           pOutput,
-       CONST DEVMODEA  *pDevMode
-       )
-{
-       /* Note Windows 2000/XP/VISTA always return -1 */
-       return -1;
-}
 
 
 /*
index 8f723c0..c0892a8 100644 (file)
 
 #define UNIMPLEMENTED DbgPrint("GDI32: %s is unimplemented, please try again later.\n", __FUNCTION__);
 
-/*
- * @implemented
- */
-int
-STDCALL
-DeviceCapabilitiesExW(
-       LPCWSTR         pDevice,
-       LPCWSTR         pPort,
-       WORD            fwCapability,
-       LPWSTR          pOutput,
-       CONST DEVMODEW  *pDevMode
-       )
-{
-    /* Note Windows 2000/XP/VISTA always return -1 */
-    return -1;
-}
+
 
 
 /*
index 24d423c..379b6af 100644 (file)
@@ -3,19 +3,7 @@
 #define NDEBUG
 #include <debug.h>
 
-/*
- * @implemented
- */
-BOOL
-STDCALL
-FixBrushOrgEx(
-   HDC hDC,
-   INT nXOrg,
-   INT nYOrg,
-   LPPOINT lpPoint)
-{
-   return FALSE;
-}
+
 
 /*
  * @implemented