[MPlayer-cvslog] r33215 - trunk/gui/util/bitmap.c

ib subversion at mplayerhq.hu
Mon Apr 4 20:51:06 CEST 2011


Author: ib
Date: Mon Apr  4 20:51:06 2011
New Revision: 33215

Log:
Revert r33214.

According to the documentation transparent regions in the image
appear black on X servers without the XShape extension.

Modified:
   trunk/gui/util/bitmap.c

Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c	Mon Apr  4 20:35:25 2011	(r33214)
+++ trunk/gui/util/bitmap.c	Mon Apr  4 20:51:06 2011	(r33215)
@@ -242,8 +242,10 @@ int Convert32to1(txSample *in, txSample 
 
         if (buf[i] != transparent)
             tmp |= 0x80;
-        else
+        else {
+            buf[i] = 0;
             shaped = 1;
+        }
 
         if (++b == 8) {
             out->Image[c++] = tmp;


More information about the MPlayer-cvslog mailing list