[ros-diffs] [greatlrd] 28687: implement : GetBoundsRect remove redirect for follow api for they are need more stuff in user mode GetBkColor, GetBkMode, GetBrushOrgEx, GetCharABCWidthsFloatW

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Thu Aug 30 22:55:32 CEST 2007


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?rev=28687&r1=28686&r2=28687&view=diff
==============================================================================
--- 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 at 4
 GetArcDirection at 4
 GetAspectRatioFilterEx at 8
+GetBitmapBits at 12=NtGdiGetBitmapBits at 12
+GetBitmapDimensionEx at 8=NtGdiGetBitmapDimension at 8
+GetBkColor at 4
+GetBkMode at 4
+GetBoundsRect at 12
+GetBrushOrgEx at 8
+GetCharABCWidthsA at 16
+GetCharABCWidthsFloatA at 16
+GetCharABCWidthsFloatW at 16
+GetCharABCWidthsI at 20
+
+
 
 ClearBitmapAttributes at 8
 ClearBrushAttributes at 8
@@ -337,17 +349,7 @@
 DdEntry56 at 8=NtGdiDdWaitForVerticalBlank at 8
 GdiDrawStream at 12
 GetBitmapAttributes at 4
-GetBitmapBits at 12=NtGdiGetBitmapBits at 12
-GetBitmapDimensionEx at 8=NtGdiGetBitmapDimension at 8
-GetBkColor at 4=NtGdiGetBkColor at 4
-GetBkMode at 4=NtGdiGetBkMode at 4
-GetBoundsRect at 12
 GetBrushAttributes at 4
-GetBrushOrgEx at 8=NtGdiGetBrushOrgEx at 8
-GetCharABCWidthsA at 16
-GetCharABCWidthsFloatA at 16
-GetCharABCWidthsFloatW at 16=NtGdiGetCharABCWidthsFloat at 16
-GetCharABCWidthsI at 20
 GetCharABCWidthsW at 16=NtGdiGetCharABCWidths at 16
 GetCharWidth32A at 16
 GetCharWidth32W at 16=NtGdiGetCharWidth32 at 16

Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs.c?rev=28687&r1=28686&r2=28687&view=diff
==============================================================================
--- 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);
+}
+




More information about the Ros-diffs mailing list