diff options
author | Adrian Lees <adrian@aemulor.com> | 2009-02-27 02:29:59 +0000 |
---|---|---|
committer | Adrian Lees <adrian@aemulor.com> | 2009-02-27 02:29:59 +0000 |
commit | fb8d9206468f2141e1cfc4107a72c9ad124121f1 (patch) | |
tree | 565344d007792ccb2591e64d3f6471a129a1c681 /framebuffer/fb_plotters.h | |
parent | 464b7edf0c2446f427eb84e726b031d43a25ed0f (diff) | |
download | netsurf-fb8d9206468f2141e1cfc4107a72c9ad124121f1.tar.gz netsurf-fb8d9206468f2141e1cfc4107a72c9ad124121f1.tar.bz2 |
Fix silly oversights; still disabled for now
svn path=/trunk/netsurf/; revision=6653
Diffstat (limited to 'framebuffer/fb_plotters.h')
-rw-r--r-- | framebuffer/fb_plotters.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framebuffer/fb_plotters.h b/framebuffer/fb_plotters.h index 374228ee2..4b3102f03 100644 --- a/framebuffer/fb_plotters.h +++ b/framebuffer/fb_plotters.h @@ -50,7 +50,7 @@ bool fb_plotters_bitmap_tile(int x, int y, /* alpha blend two pixels together */ static inline colour fb_plotters_ablend(colour pixel, colour scrpixel) { -#if 1 +#if 0 int opacity = (pixel >> 24) & 0xFF; int r,g,b; @@ -74,7 +74,7 @@ static inline colour fb_plotters_ablend(colour pixel, colour scrpixel) g = ((pixel & 0x00FF00) * opacity + (scrpixel & 0x00FF00) * transp) >> 8; - return rb | g; + return (rb & 0xFF0FF) | (g & 0xFF00); #endif } |