Author: greatlrd
Date: Fri Aug 31 20:17:28 2007
New Revision: 28713
URL:
http://svn.reactos.org/svn/reactos?rev=28713&view=rev
Log:
Move more history api to the history file.
follow api have been move
DdSwapTextureHandles aka gdientry16, GdiReleaseLocalDC, GdiDeleteLocalDC,
DeviceCapabilitiesExA, DeviceCapabilitiesExW, FixBrushOrgEx to historic.c
Modified:
trunk/reactos/dll/win32/gdi32/misc/gdientry.c
trunk/reactos/dll/win32/gdi32/misc/historic.c
trunk/reactos/dll/win32/gdi32/misc/misc.c
trunk/reactos/dll/win32/gdi32/misc/stubs.c
trunk/reactos/dll/win32/gdi32/misc/stubsa.c
trunk/reactos/dll/win32/gdi32/misc/stubsw.c
trunk/reactos/dll/win32/gdi32/objects/brush.c
Modified: trunk/reactos/dll/win32/gdi32/misc/gdientry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/gdien…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/gdientry.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/gdientry.c Fri Aug 31 20:17:28 2007
@@ -1033,21 +1033,8 @@
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;
-}
-
-
-
-
+
+
+
+
+
Modified: trunk/reactos/dll/win32/gdi32/misc/historic.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/histo…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/historic.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/historic.c Fri Aug 31 20:17:28 2007
@@ -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 @@
STDCALL
GdiConvertBitmap(HBITMAP hbm)
{
+ /* Note Windows 2000/XP/VISTA always returns hbm */
return hbm;
}
@@ -75,6 +81,7 @@
STDCALL
GdiConvertBrush(HBRUSH hbr)
{
+ /* Note Windows 2000/XP/VISTA always returns hbr */
return hbr;
}
@@ -85,6 +92,7 @@
STDCALL
GdiConvertDC(HDC hdc)
{
+ /* Note Windows 2000/XP/VISTA always returns hdc */
return hdc;
}
@@ -95,6 +103,7 @@
STDCALL
GdiConvertFont(HFONT hfont)
{
+ /* Note Windows 2000/XP/VISTA always returns hfont */
return hfont;
}
@@ -105,6 +114,7 @@
STDCALL
GdiConvertPalette(HPALETTE hpal)
{
+ /* Note Windows 2000/XP/VISTA always returns hpal */
return hpal;
}
@@ -115,6 +125,7 @@
STDCALL
GdiConvertRegion(HRGN hregion)
{
+ /* Note Windows 2000/XP/VISTA always returns hregion */
return hregion;
}
@@ -125,8 +136,21 @@
STDCALL
GdiSetAttrs(HDC hdc)
{
- return TRUE;
-}
+ /* 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 @@
}
-
-
+/*
+ * @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;
+}
+
+
Modified: trunk/reactos/dll/win32/gdi32/misc/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/misc.…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/misc.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/misc.c Fri Aug 31 20:17:28 2007
@@ -158,18 +158,6 @@
return GDI_BatchLimit;
}
-
-/*
- * @implemented
- */
-BOOL
-STDCALL
-GdiReleaseLocalDC(HDC hdc)
-{
- return TRUE;
-}
-
-
/*
* @unimplemented
*/
@@ -177,8 +165,7 @@
STDCALL
GdiReleaseDC(HDC hdc)
{
- GdiReleaseLocalDC(hdc);
- return 0;
+ return 0;
}
INT STDCALL
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 Fri Aug 31 20:17:28 2007
@@ -1344,18 +1344,6 @@
HENHMETAFILE
STDCALL
GdiConvertEnhMetaFile(HENHMETAFILE hmf)
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-GdiDeleteLocalDC(HDC hdc)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
Modified: trunk/reactos/dll/win32/gdi32/misc/stubsa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubsa.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubsa.c Fri Aug 31 20:17:28 2007
@@ -14,22 +14,6 @@
#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;
-}
/*
Modified: trunk/reactos/dll/win32/gdi32/misc/stubsw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubsw.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubsw.c Fri Aug 31 20:17:28 2007
@@ -13,22 +13,7 @@
#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;
-}
+
/*
Modified: trunk/reactos/dll/win32/gdi32/objects/brush.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/br…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/brush.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/brush.c Fri Aug 31 20:17:28 2007
@@ -3,19 +3,7 @@
#define NDEBUG
#include <debug.h>
-/*
- * @implemented
- */
-BOOL
-STDCALL
-FixBrushOrgEx(
- HDC hDC,
- INT nXOrg,
- INT nYOrg,
- LPPOINT lpPoint)
-{
- return FALSE;
-}
+
/*
* @implemented