r10883 vince - /trunk/netsurf/windows/plot.c

netsurf at semichrome.net netsurf at semichrome.net
Thu Oct 14 01:59:01 BST 2010


Author: vince
Date: Wed Oct 13 19:59:01 2010
New Revision: 10883

URL: http://source.netsurf-browser.org?rev=10883&view=rev
Log:
ensure transparency is unset

Modified:
    trunk/netsurf/windows/plot.c

Modified: trunk/netsurf/windows/plot.c
URL: http://source.netsurf-browser.org/trunk/netsurf/windows/plot.c?rev=10883&r1=10882&r2=10883&view=diff
==============================================================================
--- trunk/netsurf/windows/plot.c (original)
+++ trunk/netsurf/windows/plot.c Wed Oct 13 19:59:01 2010
@@ -848,7 +848,7 @@
 			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 @@
 	 * 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 @@
 		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, 




More information about the netsurf-commits mailing list