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

ib subversion at mplayerhq.hu
Thu Oct 20 14:24:00 CEST 2011


Author: ib
Date: Thu Oct 20 14:24:00 2011
New Revision: 34220

Log:
Add comment to bpRenderMask().

Modified:
   trunk/gui/util/bitmap.c

Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c	Thu Oct 20 14:12:51 2011	(r34219)
+++ trunk/gui/util/bitmap.c	Thu Oct 20 14:24:00 2011	(r34220)
@@ -268,6 +268,8 @@ void bpFree(guiImage *img)
  * @param out bitmap mask
  *
  * @return 1 (ok) or 0 (error)
+ *
+ * @note As a side effect, transparent pixels of @a in will be rendered black.
  */
 int bpRenderMask(const guiImage *in, guiImage *out)
 {
@@ -295,7 +297,7 @@ int bpRenderMask(const guiImage *in, gui
             if (!IS_TRANSPARENT(buf[i]))
                 tmp |= b;
             else {
-                buf[i] = 0;
+                buf[i] = 0; // pixel should be black (if transparency isn't supported)
                 shaped = 1;
             }
 


More information about the MPlayer-cvslog mailing list