From ea5d0bd7ec036eb8a34afe1d339b3233d281db57 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Fri, 12 Dec 2008 03:16:06 +0000 Subject: [PATCH] fix yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19394 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/resize.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c index c11a8d6ace..476188488c 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)