summaryrefslogtreecommitdiff
path: root/src/plot/16bpp.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-07-08 15:12:05 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-07-08 15:12:05 +0000
commit60d00a95a3328236b77df4a7dea3b62c4879f922 (patch)
tree786465387f3fc80eb4912f2eca9517a74fd92ad0 /src/plot/16bpp.c
parent45f84e713c825bedd16d4f7765198a9b3ec70b46 (diff)
downloadlibnsfb-60d00a95a3328236b77df4a7dea3b62c4879f922.tar.gz
libnsfb-60d00a95a3328236b77df4a7dea3b62c4879f922.tar.bz2
Add 8bpp scaled bitmap plotter. Fix 16bpp scaled bitmap plotter.
svn path=/trunk/libnsfb/; revision=10611
Diffstat (limited to 'src/plot/16bpp.c')
-rw-r--r--src/plot/16bpp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plot/16bpp.c b/src/plot/16bpp.c
index 63d1656..ce334a3 100644
--- a/src/plot/16bpp.c
+++ b/src/plot/16bpp.c
@@ -1,5 +1,6 @@
/*
* Copyright 2009 Vincent Sanders <vince@simtec.co.uk>
+ * Copyright 2010 Michael Drake <tlsa@netsurf-browser.org>
*
* This file is part of libnsfb, http://www.netsurf-browser.org/
* Licenced under the MIT License,
@@ -378,7 +379,7 @@ static bool bitmap_scaled(nsfb_t *nsfb, const nsfb_bbox_t *loc,
/* plot the image */
pvideo = get_xy_loc(nsfb, clipped.x0, clipped.y0);
- pvideo_limit = pvideo + (nsfb->linelen >> 2) * rheight;
+ pvideo_limit = pvideo + (nsfb->linelen >> 1) * rheight;
if (alpha) {
for (; pvideo < pvideo_limit; pvideo += (nsfb->linelen >> 1)) {
/* looping through render area vertically */