Accept FS#6747 by Timo Horstschäfer

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12704 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-03-10 12:43:21 +00:00
parent 3631f11fea
commit a990ff2920
4 changed files with 6 additions and 9 deletions

View file

@ -229,7 +229,8 @@ static void gui_list_draw(struct gui_list * gui_list)
int lines;
#ifdef HAVE_LCD_BITMAP
int item_offset;
int old_margin = display->getxmargin();
int old_xmargin = display->getxmargin();
int old_ymargin = display->getymargin();
#endif
gui_textarea_clear(display);
@ -406,7 +407,9 @@ 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);
screen_set_xmargin(display, old_xmargin);
screen_set_ymargin(display, old_ymargin);
#endif
gui_textarea_update(display);

View file

@ -646,7 +646,6 @@ int solitaire_menu(bool in_game)
break;
case 3:
rb->lcd_setmargins(0, 0);
if (solitaire_help() == HELP_USB)
result = MENU_USB;
break;
@ -657,7 +656,6 @@ int solitaire_menu(bool in_game)
}
}
rb->menu_exit(m);
rb->lcd_setmargins(0, 0);
return result;
}

View file

@ -1287,8 +1287,6 @@ static bool viewer_options_menu(void)
result = rb->menu_run(m);
rb->menu_exit(m);
#ifdef HAVE_LCD_BITMAP
rb->lcd_setmargins(0,0);
/* Show-scrollbar mode for current view-width mode */
if (!ONE_SCREEN_FITS_ALL())
if (prefs.scrollbar_mode == true)
@ -1328,9 +1326,6 @@ static void viewer_menu(void)
break;
}
rb->menu_exit(m);
#ifdef HAVE_LCD_BITMAP
rb->lcd_setmargins(0,0);
#endif
viewer_draw(col);
}

View file

@ -277,3 +277,4 @@ Sean Morrisey
Shay Green
Nick Vanderweit
Simon Menzel
Timo Horstschäfer