changeset 34132:085b62ad0cf9

Add comment to bpRenderMask().
author ib
date Thu, 20 Oct 2011 12:24:00 +0000
parents db5ddd7433c8
children 568f3a8e1b89
files gui/util/bitmap.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Thu Oct 20 12:12:51 2011 +0000
+++ b/gui/util/bitmap.c	Thu Oct 20 12:24:00 2011 +0000
@@ -268,6 +268,8 @@
  * @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 @@
             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;
             }