summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2008-12-12 03:16:06 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2008-12-12 03:16:06 +0000
commitea5d0bd7ec036eb8a34afe1d339b3233d281db57 (patch)
treee139448ed1570296844105b7a9234cd80f8ff091
parent66b0d8198e80d85c5c0cf26c9e462309e57c6df6 (diff)
downloadrockbox-ea5d0bd7ec036eb8a34afe1d339b3233d281db57.zip
rockbox-ea5d0bd7ec036eb8a34afe1d339b3233d281db57.tar.gz
rockbox-ea5d0bd7ec036eb8a34afe1d339b3233d281db57.tar.bz2
rockbox-ea5d0bd7ec036eb8a34afe1d339b3233d281db57.tar.xz
fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19394 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/resize.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c
index c11a8d6..4761884 100644
--- a/apps/recorder/resize.c
+++ b/apps/recorder/resize.c
@@ -455,8 +455,11 @@ static inline bool scale_nearest(struct bitmap *bm,
const int rowstop = rset->rowstop;
const int fb_width = get_fb_width(bm, false);
long last_tick = current_tick;
- int ix, ox, lx, xe, iy, oy, ly, ye, yet, oyt;
- int xelim, ixls, xels, yelim, iyls, yels, oyls, p;
+ /* yet/oyt will always be initialized before use, since they are set in the
+ inside loop, and not used elsewhere until the end of the outside loop.
+ */
+ int ix, ox, lx, xe, iy, oy, ly, ye, yet = yet, oyt = oyt;
+ int xelim, ixls, xels, yelim, iyls, yels, p;
struct img_part *cur_part;
#ifndef HAVE_LCD_COLOR
fb_data *dest = dest, *dest_t;
@@ -476,7 +479,6 @@ static inline bool scale_nearest(struct bitmap *bm,
yelim = sh == dh - 1 ? dh : dh - 1;
iyls = yelim ? sh / yelim : 1;
yels = iyls * (yelim ? yelim : 1);
- oyls *= rowstep;
int delta = 127;
#if LCD_PIXELFORMAT == HORIZONTAL_PACKING || \
(defined(HAVE_REMOTE_LCD) && LCD_REMOTE_PIXELFORMAT == HORIZONTAL_PACKING)