diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-10-14 00:59:01 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-10-14 00:59:01 +0000 |
commit | 7e0e61992a32a7262089fb0e38c47957a64aaba3 (patch) | |
tree | 30114bf619c3143ad94d38efb7ed32a6dcddc7a5 /windows | |
parent | 83e6c1ba57e47efcb03573d8fdd17aa0cd0ff6dd (diff) | |
download | netsurf-7e0e61992a32a7262089fb0e38c47957a64aaba3.tar.gz netsurf-7e0e61992a32a7262089fb0e38c47957a64aaba3.tar.bz2 |
ensure transparency is unset
svn path=/trunk/netsurf/; revision=10883
Diffstat (limited to 'windows')
-rw-r--r-- | windows/plot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/windows/plot.c b/windows/plot.c index 78dcb8cfd..93789b776 100644 --- a/windows/plot.c +++ b/windows/plot.c @@ -848,7 +848,7 @@ windows_plot_bitmap(int x, int y, if ((*(bitmap->pixdata + 3) & 0xff) == 0) { return true; } - return plot_block(*(COLORREF *)bitmap->pixdata, x, y, x + width, y + height); + return plot_block((*(COLORREF *)bitmap->pixdata) & 0xffffff, x, y, x + width, y + height); } else { return plot_bitmap(bitmap, x, y, width, height); @@ -859,7 +859,7 @@ windows_plot_bitmap(int x, int y, * of the area. Can only be done when image is fully opaque. */ if ((bitmap->width == 1) && (bitmap->height == 1)) { if ((*(COLORREF *)bitmap->pixdata & 0xff000000) != 0) { - return plot_block(*(COLORREF *)bitmap->pixdata, + return plot_block((*(COLORREF *)bitmap->pixdata) & 0xffffff, plot_clip.left, plot_clip.top, plot_clip.right, @@ -874,7 +874,7 @@ windows_plot_bitmap(int x, int y, if (bitmap->opaque) { /** TODO: Currently using top left pixel. Maybe centre * pixel or average value would be better. */ - return plot_block(*(COLORREF *)bitmap->pixdata, + return plot_block((*(COLORREF *)bitmap->pixdata) & 0xffffff, plot_clip.left, plot_clip.top, plot_clip.right, |