Author: jimtabor
Date: Mon May 5 12:45:20 2008
New Revision: 33300
URL:
http://svn.reactos.org/svn/reactos?rev=33300&view=rev
Log:
Implement XxxRedrawDesktop for Dx, needs testing.
Modified:
trunk/reactos/subsystems/win32/win32k/include/desktop.h
trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
Modified: trunk/reactos/subsystems/win32/win32k/include/desktop.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/desktop.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/desktop.h [iso-8859-1] Mon May 5
12:45:20 2008
@@ -117,6 +117,8 @@
BOOL FASTCALL
IntDesktopUpdatePerUserSettings(BOOL bEnable);
+VOID APIENTRY UserRedrawDesktop(VOID);
+
BOOL IntRegisterShellHookWindow(HWND hWnd);
BOOL IntDeRegisterShellHookWindow(HWND hWnd);
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] Mon May 5 12:45:20
2008
@@ -627,10 +627,11 @@
APIENTRY
DxEngRedrawDesktop()
{
- /* FIXME add redraw code */
- UNIMPLEMENTED;
+ UserRedrawDesktop();
return TRUE;
}
+
+
ULONG gulVisRgnUniqueness; // Increase count everytime client region is updated.
/************************************************************************/
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] Mon May 5
12:45:20 2008
@@ -625,6 +625,25 @@
}
/* PUBLIC FUNCTIONS ***********************************************************/
+
+VOID APIENTRY
+UserRedrawDesktop()
+{
+ PWINDOW_OBJECT Window = NULL;
+
+ UserEnterExclusive();
+
+ Window = UserGetDesktopWindow();
+
+ IntInvalidateWindows( Window,
+ Window->UpdateRegion,
+ RDW_FRAME |
+ RDW_ERASE |
+ RDW_INVALIDATE |
+ RDW_ALLCHILDREN);
+ UserLeave();
+}
+
NTSTATUS FASTCALL
co_IntShowDesktop(PDESKTOP_OBJECT Desktop, ULONG Width, ULONG Height)