# HG changeset patch # User ib # Date 1319113440 0 # Node ID 085b62ad0cf91dfdd7cce8ef6badbf0b212b15e7 # Parent db5ddd7433c8bbd5f4b86af76712737a195ca27f Add comment to bpRenderMask(). diff -r db5ddd7433c8 -r 085b62ad0cf9 gui/util/bitmap.c --- 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; }