summaryrefslogtreecommitdiff
path: root/src/plot/8bpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot/8bpp.c')
-rw-r--r--src/plot/8bpp.c4
1 files changed, 2 insertions, 2 deletions
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 */