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:
parent
fb2d6a7a3a
commit
eb9ca72388
2 changed files with 4 additions and 2 deletions
|
@ -435,7 +435,7 @@ void LCDFN(scroll_fn)(void)
|
||||||
int index;
|
int index;
|
||||||
int xpos, ypos;
|
int xpos, ypos;
|
||||||
struct viewport* old_vp = current_vp;
|
struct viewport* old_vp = current_vp;
|
||||||
bool makedelay = false;
|
bool makedelay;
|
||||||
|
|
||||||
for ( index = 0; index < LCDFN(scroll_info).lines; index++ ) {
|
for ( index = 0; index < LCDFN(scroll_info).lines; index++ ) {
|
||||||
s = &LCDFN(scroll_info).scroll[index];
|
s = &LCDFN(scroll_info).scroll[index];
|
||||||
|
@ -455,6 +455,7 @@ void LCDFN(scroll_fn)(void)
|
||||||
xpos = s->startx;
|
xpos = s->startx;
|
||||||
ypos = s->y * pf->height + s->y_offset;
|
ypos = s->y * pf->height + s->y_offset;
|
||||||
|
|
||||||
|
makedelay = false;
|
||||||
if (s->bidir) { /* scroll bidirectional */
|
if (s->bidir) { /* scroll bidirectional */
|
||||||
if (s->offset <= 0) {
|
if (s->offset <= 0) {
|
||||||
/* at beginning of line */
|
/* at beginning of line */
|
||||||
|
|
|
@ -569,7 +569,7 @@ void lcd_scroll_fn(void)
|
||||||
int xpos, ypos;
|
int xpos, ypos;
|
||||||
bool update;
|
bool update;
|
||||||
struct viewport* old_vp = current_vp;
|
struct viewport* old_vp = current_vp;
|
||||||
bool makedelay = false;
|
bool makedelay;
|
||||||
|
|
||||||
update = false;
|
update = false;
|
||||||
for ( index = 0; index < lcd_scroll_info.lines; index++ ) {
|
for ( index = 0; index < lcd_scroll_info.lines; index++ ) {
|
||||||
|
@ -589,6 +589,7 @@ void lcd_scroll_fn(void)
|
||||||
xpos = s->startx;
|
xpos = s->startx;
|
||||||
ypos = s->y;
|
ypos = s->y;
|
||||||
|
|
||||||
|
makedelay = false;
|
||||||
if (s->bidir) /* scroll bidirectional */
|
if (s->bidir) /* scroll bidirectional */
|
||||||
{
|
{
|
||||||
if (s->offset <= 0) {
|
if (s->offset <= 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue