Author: khornicek
Date: Tue Dec 9 12:33:34 2008
New Revision: 37976
URL:
http://svn.reactos.org/svn/reactos?rev=37976&view=rev
Log:
- basic implementation of GdiEntry7 and GdiEntry8
Modified:
branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c
Modified: branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/win32/gdi32/…
==============================================================================
--- branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c [iso-8859-1] (original)
+++ branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c [iso-8859-1] Tue Dec 9
12:33:34 2008
@@ -2378,12 +2378,13 @@
DdGetDC(LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal,
LPPALETTEENTRY pColorTable)
{
- /* Fixme for opengl hel emulations */
- HEL_OGL_STUB;
-#if 0
- /* Call win32k directly */
- return NtGdiDdGetDC(pColorTable, (HANDLE) pSurfaceLocal->hDDSurface);
-#endif
+ IWineD3DSurface * pWineD3DSurface = (IWineD3DSurface*) pSurfaceLocal->hDDSurface;
+ HDC hDC;
+
+ IWineD3DSurface_GetDC( pWineD3DSurface, &hDC);
+ pSurfaceLocal->hDC = (ULONG_PTR)hDC;
+
+ return hDC;
}
/*
@@ -2395,12 +2396,12 @@
WINAPI
DdReleaseDC(LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal)
{
- /* Fixme for opengl hel emulations */
- HEL_OGL_STUB;
-#if 0
- /* Call win32k directly */
- return NtGdiDdReleaseDC((HANDLE) pSurfaceLocal->hDDSurface);
-#endif
+ IWineD3DSurface * pWineD3DSurface = (IWineD3DSurface*) pSurfaceLocal->hDDSurface;
+
+ if (IWineD3DSurface_ReleaseDC( pWineD3DSurface, (HDC)pSurfaceLocal->hDC) ==
DD_OK)
+ return TRUE;
+
+ return FALSE;
}
/*