Alexandre Julliard : uxtheme: Use the correct alpha for theme gradients.

Alexandre Julliard julliard at winehq.org
Wed Nov 30 14:19:21 CST 2011


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Nov 30 14:33:54 2011 +0100

uxtheme: Use the correct alpha for theme gradients.

---

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

diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c
index 17900f8..f204bff 100644
--- a/dlls/uxtheme/draw.c
+++ b/dlls/uxtheme/draw.c
@@ -921,14 +921,14 @@ static HRESULT UXTHEME_DrawBackgroundFill(HTHEME hTheme, HDC hdc, int iPartId,
         vert[0].Red   = GetRValue(gradient1) << 8;
         vert[0].Green = GetGValue(gradient1) << 8;
         vert[0].Blue  = GetBValue(gradient1) << 8;
-        vert[0].Alpha = 0x0000;
+        vert[0].Alpha = 0xff00;
 
         vert[1].x     = pRect->right;
         vert[1].y     = pRect->bottom;
         vert[1].Red   = GetRValue(gradient2) << 8;
         vert[1].Green = GetGValue(gradient2) << 8;
         vert[1].Blue  = GetBValue(gradient2) << 8;
-        vert[1].Alpha = 0x0000;
+        vert[1].Alpha = 0xff00;
 
         gRect.UpperLeft  = 0;
         gRect.LowerRight = 1;




More information about the wine-cvs mailing list