Author: greatlrd
Date: Fri Aug 31 00:55:31 2007
New Revision: 28687
URL:
http://svn.reactos.org/svn/reactos?rev=28687&view=rev
Log:
implement : GetBoundsRect
remove redirect for follow api for they are need more stuff in user mode
GetBkColor, GetBkMode, GetBrushOrgEx, GetCharABCWidthsFloatW
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 Fri Aug 31 00:55:31 2007
@@ -276,6 +276,18 @@
GdiValidateHandle@4
GetArcDirection@4
GetAspectRatioFilterEx@8
+GetBitmapBits@12=NtGdiGetBitmapBits@12
+GetBitmapDimensionEx@8=NtGdiGetBitmapDimension@8
+GetBkColor@4
+GetBkMode@4
+GetBoundsRect@12
+GetBrushOrgEx@8
+GetCharABCWidthsA@16
+GetCharABCWidthsFloatA@16
+GetCharABCWidthsFloatW@16
+GetCharABCWidthsI@20
+
+
ClearBitmapAttributes@8
ClearBrushAttributes@8
@@ -337,17 +349,7 @@
DdEntry56@8=NtGdiDdWaitForVerticalBlank@8
GdiDrawStream@12
GetBitmapAttributes@4
-GetBitmapBits@12=NtGdiGetBitmapBits@12
-GetBitmapDimensionEx@8=NtGdiGetBitmapDimension@8
-GetBkColor@4=NtGdiGetBkColor@4
-GetBkMode@4=NtGdiGetBkMode@4
-GetBoundsRect@12
GetBrushAttributes@4
-GetBrushOrgEx@8=NtGdiGetBrushOrgEx@8
-GetCharABCWidthsA@16
-GetCharABCWidthsFloatA@16
-GetCharABCWidthsFloatW@16=NtGdiGetCharABCWidthsFloat@16
-GetCharABCWidthsI@20
GetCharABCWidthsW@16=NtGdiGetCharABCWidths@16
GetCharWidth32A@16
GetCharWidth32W@16=NtGdiGetCharWidth32@16
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 00:55:31 2007
@@ -100,19 +100,17 @@
/*
- * @unimplemented
+ * @implemented
*/
UINT
STDCALL
GetBoundsRect(
- HDC a0,
- LPRECT a1,
- UINT a2
- )
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
+ HDC hdc,
+ LPRECT lprcBounds,
+ UINT flags
+ )
+{
+ return NtGdiGetBoundsRect(hdc,lprcBounds,flags & DCB_RESET);
}
@@ -1441,7 +1439,7 @@
}
/*
- * @unimplemented
+ * @implemented
*/
HRGN
STDCALL
@@ -2783,3 +2781,52 @@
return FALSE;
}
+
+/*
+ * @implemented
+ *
+ */
+COLORREF
+STDCALL
+GetBkColor(HDC hdc)
+{
+ /* FIXME some part are done in user mode */
+ return NtGdiGetBkColor(hdc);
+}
+
+/*
+ * @implemented
+ *
+ */
+int
+STDCALL
+GetBkMode(HDC hdc)
+{
+ /* FIXME some part are done in user mode */
+ return NtGdiGetBkMode(hdc);
+}
+
+/*
+ * @implemented
+ *
+ */
+BOOL
+STDCALL
+GetBrushOrgEx(HDC hdc,LPPOINT pt)
+{
+ /* FIXME some part are done in user mode */
+ return NtGdiGetBrushOrgEx(hdc,pt);
+}
+
+/*
+ * @implemented
+ *
+ */
+BOOL
+STDCALL
+GetCharABCWidthsFloatW(HDC hdc,UINT FirstChar,UINT LastChar,LPABCFLOAT abcF)
+{
+ /* FIXME some part are done in user mode */
+ return NtGdiGetCharABCWidthsFloat(hdc, FirstChar, LastChar, abcF);
+}
+