fix yellow

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19394 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andrew Mahone 2008-12-12 03:16:06 +00:00
parent 66b0d8198e
commit ea5d0bd7ec

View file

@ -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)