The list should reset the x margin when it finishes drawing. Not leave
it up to the next screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12570 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
96d8de48c2
commit
7ae5f12449
2 changed files with 3 additions and 3 deletions
|
@ -228,6 +228,7 @@ static void gui_list_draw(struct gui_list * gui_list)
|
|||
int lines;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
int item_offset;
|
||||
int old_margin = display->getxmargin();
|
||||
#endif
|
||||
|
||||
gui_textarea_clear(display);
|
||||
|
@ -401,6 +402,7 @@ static void gui_list_draw(struct gui_list * gui_list)
|
|||
gui_list->start_item,
|
||||
gui_list->start_item + lines, VERTICAL);
|
||||
}
|
||||
screen_set_xmargin(display, old_margin);
|
||||
#endif
|
||||
|
||||
gui_textarea_update(display);
|
||||
|
|
|
@ -26,9 +26,7 @@ void gui_yesno_draw(struct gui_yesno * yn)
|
|||
{
|
||||
struct screen * display=yn->display;
|
||||
int nb_lines, line_shift=0;
|
||||
#ifdef HAS_LCD_BITMAP
|
||||
screen_set_xmargin(display, 0);
|
||||
#endif
|
||||
|
||||
gui_textarea_clear(display);
|
||||
nb_lines=yn->main_message->nb_lines;
|
||||
|
||||
|
|
Loading…
Reference in a new issue