From 36a71365d29daf08fe9c0ab64affa6fbf434fe75 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 31 Aug 2007 15:49:19 +0000 Subject: [PATCH] move dummy api / old api, that does not do anything to historic.c, they are left in gdi32.dll for make it backwords compatble with older program follow api moves from stubs.c to historic.c GdiPlayDCScript, GdiPlayJournal, GdiPlayScript, GdiConvertBitmap, GdiConvertBrush, GdiConvertDC, GdiConvertFont, GdiConvertPalette, GdiConvertRegion, GdiSetAttrs, GdiSetServerAttr. svn path=/trunk/; revision=28711 --- reactos/dll/win32/gdi32/gdi32.rbuild | 1 + reactos/dll/win32/gdi32/misc/historic.c | 143 ++++++++++++++++++++++++ reactos/dll/win32/gdi32/misc/stubs.c | 139 +---------------------- 3 files changed, 147 insertions(+), 136 deletions(-) create mode 100644 reactos/dll/win32/gdi32/misc/historic.c diff --git a/reactos/dll/win32/gdi32/gdi32.rbuild b/reactos/dll/win32/gdi32/gdi32.rbuild index f36b5fd8e48..0c5408a1dec 100644 --- a/reactos/dll/win32/gdi32/gdi32.rbuild +++ b/reactos/dll/win32/gdi32/gdi32.rbuild @@ -20,6 +20,7 @@ heap.c gdientry.c + historic.c misc.c stubs.c stubsa.c diff --git a/reactos/dll/win32/gdi32/misc/historic.c b/reactos/dll/win32/gdi32/misc/historic.c new file mode 100644 index 00000000000..24386450daf --- /dev/null +++ b/reactos/dll/win32/gdi32/misc/historic.c @@ -0,0 +1,143 @@ +/* $Id: stubs.c 28709 2007-08-31 15:09:51Z greatlrd $ + * + * reactos/lib/gdi32/misc/historic.c + * + * GDI32.DLL Stubs + * + * Api that does basic nothing, but is here for backwords compatible with older windows + * + */ + +#include "precomp.h" + +/* + * @implemented + */ +BOOL +STDCALL +GdiPlayDCScript(DWORD a0, + DWORD a1, + DWORD a2, + DWORD a3, + DWORD a4, + DWORD a5) +{ + /* FIXME fix the prototype right */ + return FALSE; +} + +/* + * @implemented + */ +BOOL +STDCALL +GdiPlayJournal(DWORD a0, + DWORD a1, + DWORD a2, + DWORD a3, + DWORD a4) +{ + /* FIXME fix the prototype right */ + return FALSE; +} + +/* + * @implemented + */ +BOOL +STDCALL +GdiPlayScript(DWORD a0, + DWORD a1, + DWORD a2, + DWORD a3, + DWORD a4, + DWORD a5, + DWORD a6) +{ + /* FIXME fix the prototype right */ + return FALSE; +} + +/* + * @implemented + */ +HBITMAP +STDCALL +GdiConvertBitmap(HBITMAP hbm) +{ + return hbm; +} + +/* + * @implemented + */ +HBRUSH +STDCALL +GdiConvertBrush(HBRUSH hbr) +{ + return hbr; +} + +/* + * @implemented + */ +HDC +STDCALL +GdiConvertDC(HDC hdc) +{ + return hdc; +} + +/* + * @implemented + */ +HFONT +STDCALL +GdiConvertFont(HFONT hfont) +{ + return hfont; +} + +/* + * @implemented + */ +HPALETTE +STDCALL +GdiConvertPalette(HPALETTE hpal) +{ + return hpal; +} + +/* + * @implemented + */ +HRGN +STDCALL +GdiConvertRegion(HRGN hregion) +{ + return hregion; +} + +/* + * @implemented + */ +BOOL +STDCALL +GdiSetAttrs(HDC hdc) +{ + return TRUE; +} + +/* + * @implemented + */ +VOID +STDCALL +GdiSetServerAttr(HDC hdc,DWORD attr) +{ + /* it does do nothing */ +} + + + + diff --git a/reactos/dll/win32/gdi32/misc/stubs.c b/reactos/dll/win32/gdi32/misc/stubs.c index d56a6f064f8..5df604bb5c7 100644 --- a/reactos/dll/win32/gdi32/misc/stubs.c +++ b/reactos/dll/win32/gdi32/misc/stubs.c @@ -1108,60 +1108,13 @@ wglSwapLayerBuffers( */ -/* - * @implemented - */ -BOOL -STDCALL -GdiPlayDCScript( - DWORD a0, - DWORD a1, - DWORD a2, - DWORD a3, - DWORD a4, - DWORD a5 - ) -{ - /* FIXME fix the prototype right */ - return FALSE; -} -/* - * @implemented - */ -BOOL -STDCALL -GdiPlayJournal( - DWORD a0, - DWORD a1, - DWORD a2, - DWORD a3, - DWORD a4 - ) -{ - /* FIXME fix the prototype right */ - return FALSE; -} -/* - * @implemented - */ -BOOL -STDCALL -GdiPlayScript( - DWORD a0, - DWORD a1, - DWORD a2, - DWORD a3, - DWORD a4, - DWORD a5, - DWORD a6) -{ - /* FIXME prototype */ - return FALSE; -} + + + /* @@ -1385,66 +1338,6 @@ GdiConvertAndCheckDC(HDC hdc) return 0; } -/* - * @implemented - */ -HBITMAP -STDCALL -GdiConvertBitmap(HBITMAP hbm) -{ - return hbm; -} - -/* - * @implemented - */ -HBRUSH -STDCALL -GdiConvertBrush(HBRUSH hbr) -{ - return hbr; -} - -/* - * @implemented - */ -HDC -STDCALL -GdiConvertDC(HDC hdc) -{ - return hdc; -} - -/* - * @implemented - */ -HFONT -STDCALL -GdiConvertFont(HFONT hfont) -{ - return hfont; -} - -/* - * @implemented - */ -HPALETTE -STDCALL -GdiConvertPalette(HPALETTE hpal) -{ - return hpal; -} - -/* - * @implemented - */ -HRGN -STDCALL -GdiConvertRegion(HRGN hregion) -{ - return hregion; -} - /* * @unimplemented */ @@ -1565,20 +1458,6 @@ GdiIsPlayMetafileDC(HDC hdc) return 0; } -/* - * @implemented - */ -BOOL -STDCALL -GdiSetAttrs(HDC hdc) -{ - return TRUE; -} - - - - - /* * @unimplemented */ @@ -1591,18 +1470,6 @@ GdiValidateHandle(HGDIOBJ hobj) return 0; } - - -/* - * @implemented - */ -VOID -STDCALL -GdiSetServerAttr(HDC hdc,DWORD attr) -{ - /* it does do nothing */ -} - /* * @unimplemented */