From 2210dafee9599c954c7db74f3dd6dfb8daf625ec Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 20 Feb 2009 13:20:49 +0000 Subject: stop opaque pixels being alphablended svn path=/trunk/netsurf/; revision=6579 --- framebuffer/fb_32bpp_plotters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framebuffer/fb_32bpp_plotters.c') diff --git a/framebuffer/fb_32bpp_plotters.c b/framebuffer/fb_32bpp_plotters.c index 11268d40a..1950ff30b 100644 --- a/framebuffer/fb_32bpp_plotters.c +++ b/framebuffer/fb_32bpp_plotters.c @@ -302,7 +302,7 @@ fb_32bpp_draw_ft_bitmap(FT_Bitmap *bp, int x, int y, colour c) abpixel = (pixel[((yoff + yloop) * bp->pitch) + xloop + xoff] << 24) | fgcol; if ((abpixel & 0xFF000000) != 0) { /* pixel is not transparent */ - if ((abpixel & 0xFF000000) != 0xFF) { + if ((abpixel & 0xFF000000) != 0xFF000000) { abpixel = fb_plotters_ablend(abpixel, fb_32bpp_to_colour(*(pvideo + xloop))); } @@ -511,7 +511,7 @@ static bool fb_32bpp_bitmap(int x, int y, int width, int height, for (xloop = 0; xloop < width; xloop++) { abpixel = pixel[((yoff + yloop) * bitmap->width) + xloop + xoff]; if ((abpixel & 0xFF000000) != 0) { - if ((abpixel & 0xFF000000) != 0xFF) { + if ((abpixel & 0xFF000000) != 0xFF000000) { abpixel = fb_plotters_ablend(abpixel, fb_32bpp_to_colour(*(pvideo + xloop))); } -- cgit v1.2.1