summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-07-08 20:53:09 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-07-08 20:53:09 +0000
commit68932b3be67f96dff19987e2c87abc8dabc30567 (patch)
treef35a0e4b04cab7fd5df0ad87f4ba8f6973f0dbcd
parent658d9ff87eb93b7b8fa84d7453d591814b4c9fa4 (diff)
downloadlibnsfb-68932b3be67f96dff19987e2c87abc8dabc30567.tar.gz
libnsfb-68932b3be67f96dff19987e2c87abc8dabc30567.tar.bz2
Missed horizontal in non-alpha case in r10615. Update comment.
svn path=/trunk/libnsfb/; revision=10617
-rw-r--r--src/plot/16bpp.c4
-rw-r--r--src/plot/32bpp.c4
-rw-r--r--src/plot/8bpp.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/plot/16bpp.c b/src/plot/16bpp.c
index ee95770..b430448 100644
--- a/src/plot/16bpp.c
+++ b/src/plot/16bpp.c
@@ -373,7 +373,7 @@ static bool bitmap_scaled(nsfb_t *nsfb, const nsfb_bbox_t *loc,
dyr = bmp_height % height;
/* get start offsets to part of image being scaled, after clipping and
- * set remainder trackers to correct starting */
+ * set remainder trackers to correct starting value */
if (clipped.x0 - x != 0) {
xoffs = ((clipped.x0 - x) * bmp_width) / width;
rxs = ((clipped.x0 - x) * bmp_width) % width;
@@ -438,7 +438,7 @@ static bool bitmap_scaled(nsfb_t *nsfb, const nsfb_bbox_t *loc,
for (; pvideo < pvideo_limit; pvideo += (nsfb->linelen >> 1)) {
/* looping through render area vertically */
xoff = xoffs;
- rx = 0;
+ rx = rxs;
for (xloop = 0; xloop < rwidth; xloop++) {
/* looping through render area horizontally */
/* get value of source pixel in question */
diff --git a/src/plot/32bpp.c b/src/plot/32bpp.c
index 96fadbd..e88537e 100644
--- a/src/plot/32bpp.c
+++ b/src/plot/32bpp.c
@@ -371,7 +371,7 @@ static bool bitmap_scaled(nsfb_t *nsfb, const nsfb_bbox_t *loc,
dyr = bmp_height % height;
/* get start offsets to part of image being scaled, after clipping and
- * set remainder trackers to correct starting */
+ * set remainder trackers to correct starting value */
if (clipped.x0 - x != 0) {
xoffs = ((clipped.x0 - x) * bmp_width) / width;
rxs = ((clipped.x0 - x) * bmp_width) % width;
@@ -436,7 +436,7 @@ static bool bitmap_scaled(nsfb_t *nsfb, const nsfb_bbox_t *loc,
for (; pvideo < pvideo_limit; pvideo += (nsfb->linelen >> 2)) {
/* looping through render area vertically */
xoff = xoffs;
- rx = 0;
+ rx = rxs;
for (xloop = 0; xloop < rwidth; xloop++) {
/* looping through render area horizontally */
/* get value of source pixel in question */
diff --git a/src/plot/8bpp.c b/src/plot/8bpp.c
index d1d43ee..c5ba689 100644
--- a/src/plot/8bpp.c
+++ b/src/plot/8bpp.c
@@ -350,7 +350,7 @@ static bool bitmap_scaled(nsfb_t *nsfb, const nsfb_bbox_t *loc,
dyr = bmp_height % height;
/* get start offsets to part of image being scaled, after clipping and
- * set remainder trackers to correct starting */
+ * set remainder trackers to correct starting value*/
if (clipped.x0 - x != 0) {
xoffs = ((clipped.x0 - x) * bmp_width) / width;
rxs = ((clipped.x0 - x) * bmp_width) % width;
@@ -416,7 +416,7 @@ static bool bitmap_scaled(nsfb_t *nsfb, const nsfb_bbox_t *loc,
for (; pvideo < pvideo_limit; pvideo += (nsfb->linelen)) {
/* looping through render area vertically */
xoff = xoffs;
- rx = 0;
+ rx = rxs;
for (xloop = 0; xloop < rwidth; xloop++) {
/* looping through render area horizontally */
/* get value of source pixel in question */