(X11 Series 3/3) Fix alpha for client-side-rendered text

Michael Karcher wine at mkarcher.dialup.fu-berlin.de
Sun Mar 16 15:10:41 CDT 2008


When running wine on an ARGB visual, the alpha specification in the text
color gets significant. The value 0 means transparent, while 0xffff
means opaque. In the case of monochrome visuals, it already was handled
correctly.

>From 68350754ffeedf896cabae0839318692565e27ff Mon Sep 17 00:00:00 2001
From: Michael Karcher <wine at mkarcher.dialup.fu-berlin.de>
Date: Sun, 16 Mar 2008 20:43:13 +0100
Subject: [PATCH] Prevent client-side-rendered text ending up transparent on ARGB visuals.

---
 dlls/winex11.drv/xrender.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c
index aa894a6..d39938c 100644
--- a/dlls/winex11.drv/xrender.c
+++ b/dlls/winex11.drv/xrender.c
@@ -1107,7 +1107,7 @@ static Picture get_tile_pict(enum drawable_depth_type type, int text_pixel)
         col.green |= col.green << 8;
         col.blue = GetField(text_pixel, b_shift, b_len);
         col.blue |= col.blue << 8;
-        col.alpha = 0x0;
+        col.alpha = 0xffff;
 
         wine_tsx11_lock();
         pXRenderFillRectangle(gdi_display, PictOpSrc, tile->pict, &col, 0, 0, 1, 1);
-- 
1.5.4.3





More information about the wine-patches mailing list