From 74bf31b2b2946f07756bc5386d73bcd119f2a389 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 19 Jan 2006 03:25:51 +0000 Subject: [PATCH] Patch by Sebastiaan Roodenburg. Fixes problem in NtGdiStrechBlt. svn path=/trunk/; revision=20946 --- reactos/subsys/win32k/ntuser/desktop.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/desktop.c b/reactos/subsys/win32k/ntuser/desktop.c index 5a446272dba..4a2167bceb8 100644 --- a/reactos/subsys/win32k/ntuser/desktop.c +++ b/reactos/subsys/win32k/ntuser/desktop.c @@ -1274,18 +1274,20 @@ NtUserPaintDesktop(HDC hDC) 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) {