1
0
Fork 0
forked from len0rd/rockbox

Fix r29123: the variable should be initialized every time in the loop

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29124 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alexander Levin 2011-01-23 21:57:23 +00:00
parent fb2d6a7a3a
commit eb9ca72388
2 changed files with 4 additions and 2 deletions

View file

@ -435,7 +435,7 @@ void LCDFN(scroll_fn)(void)
int index;
int xpos, ypos;
struct viewport* old_vp = current_vp;
bool makedelay = false;
bool makedelay;
for ( index = 0; index < LCDFN(scroll_info).lines; index++ ) {
s = &LCDFN(scroll_info).scroll[index];
@ -455,6 +455,7 @@ void LCDFN(scroll_fn)(void)
xpos = s->startx;
ypos = s->y * pf->height + s->y_offset;
makedelay = false;
if (s->bidir) { /* scroll bidirectional */
if (s->offset <= 0) {
/* at beginning of line */