mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
FS13585: Display corruption in robotfindskitten game
When you're using a "large" screen device, and the message doesn't need to scroll, parts of the previous mesage are left behind. Work around this by explicitly clearing the messgage with a loooong blank string. Change-Id: I02f7789eb6567e92ecca174c40dabc4b580ac045
This commit is contained in:
parent
e4e50e36f1
commit
d51d49550c
1 changed files with 24 additions and 26 deletions
|
@ -664,6 +664,8 @@ static void play_game()
|
||||||
input = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts,
|
input = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts,
|
||||||
ARRAYLEN(plugin_contexts));
|
ARRAYLEN(plugin_contexts));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message(" ");
|
||||||
message("Bye!");
|
message("Bye!");
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
@ -703,12 +705,6 @@ static void process_input(int input)
|
||||||
return; /*Do nothing.*/
|
return; /*Do nothing.*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Clear textline
|
|
||||||
* disabled because it breaks the scrolling for some reason
|
|
||||||
*/
|
|
||||||
/* rb->lcd_puts_scroll(0, ADV_ROW, " "); */
|
|
||||||
|
|
||||||
/*Check for collision*/
|
/*Check for collision*/
|
||||||
if (screen[check_x][check_y] != EMPTY)
|
if (screen[check_x][check_y] != EMPTY)
|
||||||
{
|
{
|
||||||
|
@ -724,6 +720,7 @@ static void process_input(int input)
|
||||||
rfkpause();
|
rfkpause();
|
||||||
break;
|
break;
|
||||||
default: /*We hit a bogus object; print its message.*/
|
default: /*We hit a bogus object; print its message.*/
|
||||||
|
message(" ");
|
||||||
message(messages[bogus_messages[screen[check_x][check_y]-2]]);
|
message(messages[bogus_messages[screen[check_x][check_y]-2]]);
|
||||||
refresh();
|
refresh();
|
||||||
break;
|
break;
|
||||||
|
@ -810,6 +807,7 @@ static void play_animation(int input)
|
||||||
rb->sleep(HZ);
|
rb->sleep(HZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message(" ");
|
||||||
message("You found kitten! Way to go, robot!");
|
message("You found kitten! Way to go, robot!");
|
||||||
refresh();
|
refresh();
|
||||||
finish(0);
|
finish(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue