[ros-diffs] [jimtabor] 20946: Patch by Sebastiaan Roodenburg. Fixes problem in NtGdiStrechBlt.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Thu Jan 19 04:25:55 CET 2006


Patch by Sebastiaan Roodenburg. Fixes problem in NtGdiStrechBlt.
Modified: trunk/reactos/subsys/win32k/ntuser/desktop.c
  _____  

Modified: trunk/reactos/subsys/win32k/ntuser/desktop.c
--- trunk/reactos/subsys/win32k/ntuser/desktop.c	2006-01-18
22:02:44 UTC (rev 20945)
+++ trunk/reactos/subsys/win32k/ntuser/desktop.c	2006-01-19
03:25:51 UTC (rev 20946)
@@ -1274,18 +1274,20 @@

  
             if (WinSta->WallpaperMode == wmStretch)
             {
-                NtGdiStretchBlt(hDC, 
-                                x, 
-                                y, 
-                                Rect.right, 
-                                Rect.bottom, 
-                                hWallpaperDC, 
-                                0, 
-                                0, 
+                if(Rect.right && Rect.bottom)
+	                NtGdiStretchBlt(hDC,
+                                x,
+                                y,
+                                sz.cx,
+                                sz.cy,
+                                hWallpaperDC,
+                                0,
+                                0,
                                 WinSta->cxWallpaper, 
                                 WinSta->cyWallpaper, 
                                 SRCCOPY,
                                 0);
+                                
             }
             else if (WinSta->WallpaperMode == wmTile)
             {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20060119/ee8661ee/attachment.html


More information about the Ros-diffs mailing list