summaryrefslogtreecommitdiff
path: root/framebuffer/fb_16bpp_plotters.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-03-22 14:34:56 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-03-22 14:34:56 +0000
commit8db32fc061dd4081dce43700db86eb7f6a7856b5 (patch)
tree0234ded268f14767c9f91f359a7b2f64f57595bb /framebuffer/fb_16bpp_plotters.c
parentc9fc91c6e4ced28336b3681a64a2a9fefaef2a4a (diff)
downloadnetsurf-8db32fc061dd4081dce43700db86eb7f6a7856b5.tar.gz
netsurf-8db32fc061dd4081dce43700db86eb7f6a7856b5.tar.bz2
add vertical scrollbar to freamebuffer
svn path=/trunk/netsurf/; revision=6817
Diffstat (limited to 'framebuffer/fb_16bpp_plotters.c')
-rw-r--r--framebuffer/fb_16bpp_plotters.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/framebuffer/fb_16bpp_plotters.c b/framebuffer/fb_16bpp_plotters.c
index 369683fde..8de86d802 100644
--- a/framebuffer/fb_16bpp_plotters.c
+++ b/framebuffer/fb_16bpp_plotters.c
@@ -453,8 +453,6 @@ static bool fb_16bpp_bitmap(int x, int y, int width, int height,
int x0,y0,x1,y1;
int xoff, yoff; /* x and y offset into image */
- /* LOG(("x %d, y %d, width %d, height %d, bitmap %p, content %p",
- x,y,width,height,bitmap,content));*/
/* TODO here we should scale the image from bitmap->width to width, for
* now simply crop.
@@ -476,12 +474,17 @@ static bool fb_16bpp_bitmap(int x, int y, int width, int height,
if (!fb_plotters_clip_rect_ctx(&x0, &y0, &x1, &y1))
return true;
+
+ LOG(("%d, %d %d, %d bitmap %p, content %p",
+ x0,y0,x1,y1,bitmap,content));
+
if (height > (y1 - y0))
height = (y1 - y0);
if (width > (x1 - x0))
width = (x1 - x0);
+
xoff = x0 - x;
yoff = (y0 - y) * bitmap->width;
height = height * bitmap->width + yoff;