[ros-diffs] [greatlrd] 33254: implemented partly DxEngGetDesktopDC

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sat May 3 12:23:14 CEST 2008


Author: greatlrd
Date: Sat May  3 05:23:14 2008
New Revision: 33254

URL: http://svn.reactos.org/svn/reactos?rev=33254&view=rev
Log:
implemented partly DxEngGetDesktopDC 

Modified:
    trunk/reactos/include/reactos/drivers/directx/dxeng.h
    trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c

Modified: trunk/reactos/include/reactos/drivers/directx/dxeng.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/drivers/directx/dxeng.h?rev=33254&r1=33253&r2=33254&view=diff
==============================================================================
--- trunk/reactos/include/reactos/drivers/directx/dxeng.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/drivers/directx/dxeng.h [iso-8859-1] Sat May  3 05:23:14 2008
@@ -103,7 +103,7 @@
 DWORD STDCALL DxEngSpTearDownSprites(DWORD x1, DWORD x2, DWORD x3);
 DWORD STDCALL DxEngSpUnTearDownSprites(DWORD x1, DWORD x2, DWORD x3);
 DWORD STDCALL DxEngSpSpritesVisible(DWORD x1);
-DWORD STDCALL DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3);
+HDC STDCALL DxEngGetDesktopDC(BOOLEAN CreateDesktopDc, DWORD x2, DWORD x3);
 DWORD STDCALL DxEngDeleteDC(DWORD x1, DWORD x2);
 DWORD STDCALL DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3);
 DWORD STDCALL DxEngSelectBitmap(DWORD x1, DWORD x2);

Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c?rev=33254&r1=33253&r2=33254&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] Sat May  3 05:23:14 2008
@@ -703,150 +703,162 @@
 /************************************************************************/
 /* DxEngGetDesktopDC                                                    */
 /************************************************************************/
+HDC
+STDCALL
+DxEngGetDesktopDC(BOOLEAN CreateDesktopDc, DWORD x2, DWORD x3)
+{
+    PWINDOW_OBJECT DesktopObject = 0;
+    HDC DesktopHDC = 0;
+
+    if (CreateDesktopDc == FALSE)
+    {        
+        DesktopObject = UserGetDesktopWindow();
+        DesktopHDC = (HDC)UserGetWindowDC(DesktopObject);
+    }
+    else
+    {
+        UNIMPLEMENTED;
+    }
+
+    return DesktopHDC;
+}
+
+/************************************************************************/
+/* DxEngDeleteDC                                                        */
+/************************************************************************/
 DWORD
 STDCALL
-DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngDeleteDC                                                        */
+DxEngDeleteDC(DWORD x1, DWORD x2)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngCleanDC                                                         */
+/************************************************************************/
+BOOLEAN
+STDCALL
+DxEngCleanDC(HDC hdc)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetDCOwner                                                      */
+/************************************************************************/
+BOOL STDCALL DxEngSetDCOwner(HGDIOBJ hObject, DWORD OwnerMask)
+{
+    DPRINT1("ReactX Calling : DxEngSetDCOwner \n");
+
+    return IntGdiSetDCOwnerEx( hObject, OwnerMask, FALSE);
+}
+
+/************************************************************************/
+/* DxEngSetDCState                                                      */
+/************************************************************************/
+DWORD STDCALL DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSelectBitmap                                                    */
+/************************************************************************/
+DWORD STDCALL DxEngSelectBitmap(DWORD x1, DWORD x2)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetBitmapOwner                                                  */
+/************************************************************************/
+DWORD STDCALL DxEngSetBitmapOwner(DWORD x1, DWORD x2)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngDeleteSurface                                                   */
+/************************************************************************/
+DWORD STDCALL DxEngDeleteSurface(DWORD x1)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngGetSurfaceData                                                  */
+/************************************************************************/
+DWORD STDCALL DxEngGetSurfaceData(DWORD x1, DWORD x2)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngAltLockSurface                                                  */
+/************************************************************************/
+DWORD STDCALL DxEngAltLockSurface(DWORD x1)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngUploadPaletteEntryToSurface                                     */
+/************************************************************************/
+DWORD STDCALL DxEngUploadPaletteEntryToSurface(DWORD x1, DWORD x2,DWORD x3, DWORD x4)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngMarkSurfaceAsDirectDraw                                         */
+/************************************************************************/
+DWORD STDCALL DxEngMarkSurfaceAsDirectDraw(DWORD x1, DWORD x2)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSelectPaletteToSurface                                          */
+/************************************************************************/
+DWORD STDCALL DxEngSelectPaletteToSurface(DWORD x1, DWORD x2)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSyncPaletteTableWithDevice                                      */
+/************************************************************************/
+DWORD STDCALL DxEngSyncPaletteTableWithDevice(DWORD x1, DWORD x2)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetPaletteState                                                 */
+/************************************************************************/
+DWORD STDCALL DxEngSetPaletteState(DWORD x1, DWORD x2, DWORD x3)
+{
+    UNIMPLEMENTED;
+    return FALSE;
+}
+
+/************************************************************************/
+/* DxEngGetRedirectionBitmap                                            */
 /************************************************************************/
 DWORD
 STDCALL
-DxEngDeleteDC(DWORD x1, DWORD x2)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngCleanDC                                                         */
-/************************************************************************/
-BOOLEAN
-STDCALL
-DxEngCleanDC(HDC hdc)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngSetDCOwner                                                      */
-/************************************************************************/
-BOOL STDCALL DxEngSetDCOwner(HGDIOBJ hObject, DWORD OwnerMask)
-{
-    DPRINT1("ReactX Calling : DxEngSetDCOwner \n");
-
-    return IntGdiSetDCOwnerEx( hObject, OwnerMask, FALSE);
-}
-
-/************************************************************************/
-/* DxEngSetDCState                                                      */
-/************************************************************************/
-DWORD STDCALL DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngSelectBitmap                                                    */
-/************************************************************************/
-DWORD STDCALL DxEngSelectBitmap(DWORD x1, DWORD x2)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngSetBitmapOwner                                                  */
-/************************************************************************/
-DWORD STDCALL DxEngSetBitmapOwner(DWORD x1, DWORD x2)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngDeleteSurface                                                   */
-/************************************************************************/
-DWORD STDCALL DxEngDeleteSurface(DWORD x1)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngGetSurfaceData                                                  */
-/************************************************************************/
-DWORD STDCALL DxEngGetSurfaceData(DWORD x1, DWORD x2)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngAltLockSurface                                                  */
-/************************************************************************/
-DWORD STDCALL DxEngAltLockSurface(DWORD x1)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngUploadPaletteEntryToSurface                                     */
-/************************************************************************/
-DWORD STDCALL DxEngUploadPaletteEntryToSurface(DWORD x1, DWORD x2,DWORD x3, DWORD x4)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngMarkSurfaceAsDirectDraw                                         */
-/************************************************************************/
-DWORD STDCALL DxEngMarkSurfaceAsDirectDraw(DWORD x1, DWORD x2)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngSelectPaletteToSurface                                          */
-/************************************************************************/
-DWORD STDCALL DxEngSelectPaletteToSurface(DWORD x1, DWORD x2)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngSyncPaletteTableWithDevice                                      */
-/************************************************************************/
-DWORD STDCALL DxEngSyncPaletteTableWithDevice(DWORD x1, DWORD x2)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngSetPaletteState                                                 */
-/************************************************************************/
-DWORD STDCALL DxEngSetPaletteState(DWORD x1, DWORD x2, DWORD x3)
-{
-    UNIMPLEMENTED;
-    return FALSE;
-}
-
-/************************************************************************/
-/* DxEngGetRedirectionBitmap                                            */
-/************************************************************************/
-DWORD
-STDCALL
 DxEngGetRedirectionBitmap(DWORD x1)
 {
     return FALSE; // Normal return.



More information about the Ros-diffs mailing list