Author: greatlrd
Date: Sun Sep 23 17:46:20 2007
New Revision: 29162
URL:
http://svn.reactos.org/svn/reactos?rev=29162&view=rev
Log:
implement StartFormPage it call on StartPage(hdc); and StartPage is unimplment
Fix : do not redirect TranslateCharsetInfo and StretchDIBits some stuff need be done in
user mode.
Modified:
trunk/reactos/dll/win32/gdi32/gdi32.def
trunk/reactos/dll/win32/gdi32/misc/stubs.c
Modified: trunk/reactos/dll/win32/gdi32/gdi32.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.def (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.def Sun Sep 23 17:46:20 2007
@@ -436,7 +436,6 @@
PolyPatBlt@20
PolyPolygon@16
PolyPolyline@16
-
PolyTextOutA@12
PolyTextOutW@12
Polygon@12
@@ -527,6 +526,16 @@
SetWorldTransform@8
StartDocA@8
StartDocW@8
+StartFormPage@4
+StartPage@4
+StretchBlt@44
+StretchDIBits@52
+StrokeAndFillPath@4
+StrokePath@4
+SwapBuffers@4
+TextOutA@20
+TextOutW@20
+TranslateCharsetInfo@12
@@ -596,16 +605,6 @@
GetTextExtentPoint32A@16
SetBitmapAttributes@8
SetBrushAttributes@8
-StartFormPage@4
-StartPage@4
-StretchBlt@44
-StretchDIBits@52=NtGdiStretchDIBits@52
-StrokeAndFillPath@4
-StrokePath@4
-SwapBuffers@4
-TextOutA@20
-TextOutW@20
-TranslateCharsetInfo@12=NtGdiTranslateCharsetInfo@12
UnrealizeObject@4
UnloadNetworkFonts@4
UpdateColors@4
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 23 17:46:20 2007
@@ -19,6 +19,45 @@
#define SIZEOF_DEVMODEW_500 220
#define UNIMPLEMENTED DbgPrint("GDI32: %s is unimplemented, please try again
later.\n", __FUNCTION__);
+
+
+/*
+ * @unimplemented
+ */
+BOOL
+STDCALL
+TranslateCharsetInfo(DWORD * lpSrc,
+ LPCHARSETINFO lpCs,
+ DWORD dwFlags)
+{
+ /* FIXME share memory */
+ return NtGdiTranslateCharsetInfo(lpSrc, lpCs, dwFlags );
+}
+
+/*
+ * @unimplemented
+ */
+int
+STDCALL
+StretchDIBits(HDC hdc,
+ int XDest,
+ int YDest,
+ int nDestWidth,
+ int nDestHeight,
+ int XSrc,
+ int YSrc,
+ int nSrcWidth,
+ int nSrcHeight,
+ CONST VOID *lpBits,
+ CONST BITMAPINFO *lpBitsInfo,
+ UINT iUsage,
+ DWORD dwRop)
+
+{
+ /* FIXME share memory */
+ return NtGdiStretchDIBits(hdc, XDest, YDest, nDestWidth, nDestHeight, XSrc, YSrc,
+ nSrcWidth, nSrcHeight, lpBits, lpBitsInfo, iUsage, dwRop);
+}
/*
* @unimplemented
@@ -1832,15 +1871,13 @@
/*
- * @unimplemented
+ * @implemented
*/
int
STDCALL
StartFormPage(HDC hdc)
{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
+ return StartPage(hdc);
}
/*