implement GdiEntry 8, Implement GdiEntry 10
Modified: trunk/reactos/lib/gdi32/misc/gdientry.c
Modified: trunk/reactos/lib/gdi32/misc/stubs.c
_____
Modified: trunk/reactos/lib/gdi32/misc/gdientry.c
--- trunk/reactos/lib/gdi32/misc/gdientry.c 2005-07-28 21:34:00 UTC
(rev 16842)
+++ trunk/reactos/lib/gdi32/misc/gdientry.c 2005-07-28 21:55:51 UTC
(rev 16843)
@@ -64,7 +64,7 @@
{
/* we have create a directdraw handler already */
- pDirectDrawGlobal->hDD = pDirectDrawGlobalInternal->hDD;
+ pDirectDrawGlobal->hDD = pDirectDrawGlobalInternal->hDD;
return TRUE;
}
@@ -78,7 +78,8 @@
NtGdiDeleteDC(newHdc);
}
- pDirectDrawGlobal->hDD = pDirectDrawGlobalInternal->hDD;
+ /* pDirectDrawGlobal->hDD = pDirectDrawGlobalInternal->hDD; ? */
+ pDirectDrawGlobal->hDD = 0; /* ? */
/* test see if we got a handler */
if (!pDirectDrawGlobalInternal->hDD)
@@ -156,3 +157,37 @@
{
return NtGdiDdGetDC(pColorTable, (HANDLE)
pSurfaceLocal->hDDSurface);
}
+
+/*
+ * @implemented
+ *
+ * GDIEntry 8
+ */
+BOOL STDCALL DdReleaseDC(
+LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal
+)
+{
+ return NtGdiDdReleaseDC((HANDLE) pSurfaceLocal->hDDSurface);
+}
+
+/*
+ * @implemented
+ *
+ * GDIEntry 10
+ */
+BOOL
+STDCALL
+DdReenableDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
+ BOOL *pbNewMode)
+{
+ if (!pDirectDrawGlobal->hDD)
+ {
+ if (!pDirectDrawGlobalInternal->hDD)
+ {
+ return FALSE;
+ }
+ return
NtGdiDdReenableDirectDrawObject((HANDLE)pDirectDrawGlobalInternal->hDD,
pbNewMode);
+ }
+
+ return
NtGdiDdReenableDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD,
pbNewMode);
+}
_____
Modified: trunk/reactos/lib/gdi32/misc/stubs.c
--- trunk/reactos/lib/gdi32/misc/stubs.c 2005-07-28 21:34:00 UTC
(rev 16842)
+++ trunk/reactos/lib/gdi32/misc/stubs.c 2005-07-28 21:55:51 UTC
(rev 16843)
@@ -3903,18 +3903,8 @@
-/*
- * @unimplemented
- */
-BOOL STDCALL DdReleaseDC(
-LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal
-)
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
+
/*
* @unimplemented
*/
@@ -3932,19 +3922,8 @@
return 0;
}
-/*
- * @unimplemented
- */
-BOOL STDCALL DdReenableDirectDrawObject(
-LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
-BOOL *pbNewMode
-)
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
+
/*
* @unimplemented
*/
Show replies by date