diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-26 21:37:22 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-26 21:37:22 +0000 |
commit | c85268379ba1d4fc3a69c6ce8b28c69314ebd435 (patch) | |
tree | 0510923f5a9be0828c6d11420f741be2c3fee559 /framebuffer/fb_plotters.c | |
parent | 4ba6b4324ecbf2793a5ce6138609ceb7e676e448 (diff) | |
download | netsurf-c85268379ba1d4fc3a69c6ce8b28c69314ebd435.tar.gz netsurf-c85268379ba1d4fc3a69c6ce8b28c69314ebd435.tar.bz2 |
try and improve plotter perfomance futher
svn path=/trunk/netsurf/; revision=6644
Diffstat (limited to 'framebuffer/fb_plotters.c')
-rw-r--r-- | framebuffer/fb_plotters.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/framebuffer/fb_plotters.c b/framebuffer/fb_plotters.c index c99c63c2c..773cc640a 100644 --- a/framebuffer/fb_plotters.c +++ b/framebuffer/fb_plotters.c @@ -210,23 +210,6 @@ bool fb_clip(int x0, int y0, int x1, int y1) return true; } -colour fb_plotters_ablend(colour pixel, colour scrpixel) -{ - int opacity = (pixel >> 24) & 0xFF; - int r,g,b; - - r = (((pixel & 0xFF) * opacity) >> 8) + - (((scrpixel & 0xFF) * (0xFF - opacity)) >> 8); - - g = ((((pixel & 0xFF00) >> 8) * opacity) >> 8) + - ((((scrpixel & 0xFF00) >> 8) * (0xFF - opacity)) >> 8); - - b = ((((pixel & 0xFF0000) >> 16) * opacity) >> 8) + - ((((scrpixel & 0xFF0000) >> 16) * (0xFF - opacity)) >> 8); - - return r | (g << 8) | (b << 16); -} - typedef bool (linefn_t)(int x0, int y0, int x1, int y1, int width, colour c, bool dotted, bool dashed); typedef struct dcPt_s { |