implemnet NtGdiDdGetDriverInfo and NtGdiDdWaitForVerticalBlank
it is untested.
Modified: trunk/reactos/subsys/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsys/win32k/ntddraw/stubs.c
_____
Modified: trunk/reactos/subsys/win32k/ntddraw/ddraw.c
--- trunk/reactos/subsys/win32k/ntddraw/ddraw.c 2005-03-16 11:26:14 UTC
(rev 14132)
+++ trunk/reactos/subsys/win32k/ntddraw/ddraw.c 2005-03-16 11:50:24 UTC
(rev 14133)
@@ -274,4 +274,50 @@
}
*/
+
+
+DWORD STDCALL NtGdiDdGetDriverInfo(
+ HANDLE hDirectDrawLocal,
+ PDD_GETDRIVERINFODATA puGetDriverInfoData)
+
+{
+ DWORD pdwNumHeaps;
+ VIDEOMEMORY *pvmList = NULL;
+ DWORD pdwNumFourCC;
+ DWORD *pdwFourCC = NULL;
+ DWORD ddRVal;
+
+
+ PDD_DIRECTDRAW pDirectDraw = GDIOBJ_LockObj(hDirectDrawLocal,
GDI_OBJECT_TYPE_DIRECTDRAW);
+
+ ddRVal = pDirectDraw->DrvGetDirectDrawInfo(
+ pDirectDraw->Global.dhpdev,(PDD_HALINFO)
puGetDriverInfoData,
+ &pdwNumHeaps, pvmList, &pdwNumFourCC, pdwFourCC);
+
+ GDIOBJ_UnlockObj(hDirectDrawLocal);
+
+ return ddRVal;
+}
+
+
+
+DWORD STDCALL NtGdiDdWaitForVerticalBlank(
+ HANDLE hDirectDrawLocal,
+ PDD_WAITFORVERTICALBLANKDATA puWaitForVerticalBlankData
+)
+{
+ DWORD ddRVal;
+ PDD_DIRECTDRAW pDirectDraw = GDIOBJ_LockObj(hDirectDrawLocal,
GDI_OBJECT_TYPE_DIRECTDRAW);
+
+ puWaitForVerticalBlankData->lpDD = pDirectDraw->Local.lpGbl;
+
+ ddRVal =
pDirectDraw->DdWaitForVerticalBlank(puWaitForVerticalBlankData);
+
+ GDIOBJ_UnlockObj(hDirectDrawLocal);
+
+ return ddRVal;
+}
+
+
+
/* EOF */
_____
Modified: trunk/reactos/subsys/win32k/ntddraw/stubs.c
--- trunk/reactos/subsys/win32k/ntddraw/stubs.c 2005-03-16 11:26:14 UTC
(rev 14132)
+++ trunk/reactos/subsys/win32k/ntddraw/stubs.c 2005-03-16 11:50:24 UTC
(rev 14133)
@@ -16,6 +16,17 @@
#include <debug.h>
+DWORD STDCALL NtGdiDdGetAvailDriverMemory(
+ HANDLE hDirectDrawLocal,
+ PDD_GETAVAILDRIVERMEMORYDATA puGetAvailDriverMemoryData
+)
+{
+ UNIMPLEMENTED
+
+
+ return 0;
+}
+
BOOL STDCALL NtGdiD3dContextCreate(
HANDLE hDirectDrawLocal,
HANDLE hSurfColor,
@@ -308,16 +319,7 @@
return 0;
}
-DWORD STDCALL NtGdiDdGetAvailDriverMemory(
- HANDLE hDirectDraw,
- PDD_GETAVAILDRIVERMEMORYDATA puGetAvailDriverMemoryData
-)
-{
- UNIMPLEMENTED
- return 0;
-}
-
DWORD STDCALL NtGdiDdGetBltStatus(
HANDLE hSurface,
PDD_GETBLTSTATUSDATA puGetBltStatusData
@@ -338,15 +340,7 @@
return 0;
}
-DWORD STDCALL NtGdiDdGetDriverInfo(
- HANDLE hDirectDraw,
- PDD_GETDRIVERINFODATA puGetDriverInfoData
-)
-{
- UNIMPLEMENTED
- return 0;
-}
DWORD STDCALL NtGdiDdGetDriverState(
PDD_GETDRIVERSTATEDATA pdata
@@ -600,14 +594,5 @@
return 0;
}
-DWORD STDCALL NtGdiDdWaitForVerticalBlank(
- HANDLE hDirectDraw,
- PDD_WAITFORVERTICALBLANKDATA puWaitForVerticalBlankData
-)
-{
- UNIMPLEMENTED
- return 0;
-}
-
/* EOF */