diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-09-04 16:34:55 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-09-04 16:34:55 +0000 |
commit | 3c47d94668c2129ab5cc50ef1c58dc37a5bc00a4 (patch) | |
tree | 6b5db0fd97ff24f6b2b9ad1b761a35c9bf05d30a /apps/gui | |
parent | 0cb68032275c7b15200a8766ed8c487689175b24 (diff) |
Alright, it seems I got scroll_stop() wrong. Using the viewport that's set before doing all the puts_scroll* calls seems to work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22622 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/bitmap/list.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index c474c329ff..94870538d6 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -66,6 +66,7 @@ static bool draw_title(struct screen *display, struct gui_synclist *list) { const int screen = display->screen_type; int style = STYLE_DEFAULT; + display->scroll_stop(&title_text[screen]); if (!list_display_title(list, screen)) return false; title_text[screen] = *(list->parent[screen]); @@ -104,9 +105,6 @@ void list_draw(struct screen *display, struct gui_synclist *list) const bool show_cursor = !global_settings.cursor_style && list->show_selection_marker; struct viewport *parent = (list->parent[screen]); - /* the below returns a pointer to a viewport array which is - * NB_SCREENS long */ - struct viewport *ui_vp = viewport_get_current_vp(); #ifdef HAVE_LCD_COLOR unsigned char cur_line = 0; #endif @@ -115,7 +113,7 @@ void list_draw(struct screen *display, struct gui_synclist *list) line_height = font_get(parent->font)->height; display->set_viewport(parent); display->clear_viewport(); - display->scroll_stop(&ui_vp[screen]); + display->scroll_stop(&list_text[screen]); list_text[screen] = *parent; if ((show_title = draw_title(display, list))) { |