summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-03 13:42:12 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-03 13:42:12 +0000
commit7ae5f12449bcb2ddaf8b578e06d91ddfaa69df72 (patch)
treec9990290b25f0dbc9b64188af695fff7ff4ea7ad /apps
parent96d8de48c2bd629bf395596c5c4effa2d7ad6f07 (diff)
downloadrockbox-7ae5f12449bcb2ddaf8b578e06d91ddfaa69df72.tar.gz
rockbox-7ae5f12449bcb2ddaf8b578e06d91ddfaa69df72.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/list.c2
-rw-r--r--apps/gui/yesno.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 5d5733b4e9..286e6f9e59 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -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);
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c
index 6cb6ddb9aa..d05ea6654a 100644
--- a/apps/gui/yesno.c
+++ b/apps/gui/yesno.c
@@ -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;