Alexandre Julliard : comctl32/imagelist: Clear pixels that fall outside the mask when generating an alpha channel.

Alexandre Julliard julliard at winehq.org
Thu May 20 11:02:55 CDT 2010


Module: wine
Branch: master
Commit: 8f1853a309e0f17d83af2725462e8c9aa925e830
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8f1853a309e0f17d83af2725462e8c9aa925e830

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed May 19 20:11:48 2010 +0200

comctl32/imagelist: Clear pixels that fall outside the mask when generating an alpha channel.

---

 dlls/comctl32/imagelist.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 27d95f5..11ff27f 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -205,6 +205,8 @@ static BOOL add_with_alpha( HIMAGELIST himl, HDC hdc, int pos, int count,
                 for (j = n * width; j < (n + 1) * width; j++)
                     if (!mask_bits || !((mask_bits[i * mask_width + j / 8] << (j % 8)) & 0x80))
                         bits[i * bm.bmWidth + j] |= 0xff000000;
+                    else
+                        bits[i * bm.bmWidth + j] = 0;
             if (hdcMask) StretchBlt( himl->hdcMask, pt.x, pt.y, himl->cx, himl->cy,
                                      hdcMask, n * width, 0, width, height, SRCCOPY );
         }




More information about the wine-cvs mailing list