summaryrefslogtreecommitdiff
path: root/framebuffer
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-02-20 13:20:49 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-02-20 13:20:49 +0000
commit2210dafee9599c954c7db74f3dd6dfb8daf625ec (patch)
tree46e65ed506173364dfc424fdfcf61b601e05f8a2 /framebuffer
parent898d547bcff09019d52e2f073856b47aaf3a9fba (diff)
downloadnetsurf-2210dafee9599c954c7db74f3dd6dfb8daf625ec.tar.gz
netsurf-2210dafee9599c954c7db74f3dd6dfb8daf625ec.tar.bz2
stop opaque pixels being alphablended
svn path=/trunk/netsurf/; revision=6579
Diffstat (limited to 'framebuffer')
-rw-r--r--framebuffer/fb_32bpp_plotters.c4
1 files changed, 2 insertions, 2 deletions
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)));
}