changeset 33128:64d19aaf624a

Revert r33214. According to the documentation transparent regions in the image appear black on X servers without the XShape extension.
author ib
date Mon, 04 Apr 2011 18:51:06 +0000
parents 6328f0baeaa9
children 5f3171d4d7a4
files gui/util/bitmap.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Mon Apr 04 18:35:25 2011 +0000
+++ b/gui/util/bitmap.c	Mon Apr 04 18:51:06 2011 +0000
@@ -242,8 +242,10 @@
 
         if (buf[i] != transparent)
             tmp |= 0x80;
-        else
+        else {
+            buf[i] = 0;
             shaped = 1;
+        }
 
         if (++b == 8) {
             out->Image[c++] = tmp;