Alex Villacís Lasso : uxtheme: Fix nasty regression with painting of themed progress bar.

Alexandre Julliard julliard at winehq.org
Thu Apr 24 06:23:13 CDT 2008


Module: wine
Branch: master
Commit: 6a422640530592116cb3fd48d8cb1ddb436bcce7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6a422640530592116cb3fd48d8cb1ddb436bcce7

Author: Alex Villacís Lasso <a_villacis at palosanto.com>
Date:   Wed Apr 23 09:45:53 2008 -0500

uxtheme: Fix nasty regression with painting of themed progress bar.

---

 dlls/uxtheme/draw.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c
index 493cf0b..3650113 100644
--- a/dlls/uxtheme/draw.c
+++ b/dlls/uxtheme/draw.c
@@ -343,6 +343,8 @@ static inline BOOL UXTHEME_SizedBlt (HDC hdcDst, int nXOriginDst, int nYOriginDs
         HDC hdcTemp;
         BOOL result = FALSE;
 
+        if (!nWidthSrc || !nHeightSrc) return TRUE;
+
         /* Create a DC with a bitmap consisting of a tiling of the source
            bitmap, with standard GDI functions. This is faster than an
            iteration with UXTHEME_Blt(). */




More information about the wine-cvs mailing list