diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 5f1b016218..448c7da7f0 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -229,8 +229,7 @@ static void gui_list_draw(struct gui_list * gui_list) | |||
229 | int lines; | 229 | int lines; |
230 | #ifdef HAVE_LCD_BITMAP | 230 | #ifdef HAVE_LCD_BITMAP |
231 | int item_offset; | 231 | int item_offset; |
232 | int old_xmargin = display->getxmargin(); | 232 | int old_margin = display->getxmargin(); |
233 | int old_ymargin = display->getymargin(); | ||
234 | #endif | 233 | #endif |
235 | 234 | ||
236 | gui_textarea_clear(display); | 235 | gui_textarea_clear(display); |
@@ -408,7 +407,7 @@ static void gui_list_draw(struct gui_list * gui_list) | |||
408 | gui_list->start_item + lines, VERTICAL); | 407 | gui_list->start_item + lines, VERTICAL); |
409 | } | 408 | } |
410 | 409 | ||
411 | display->setmargins(old_xmargin, old_ymargin); | 410 | screen_set_xmargin(display, old_margin); |
412 | #endif | 411 | #endif |
413 | 412 | ||
414 | gui_textarea_update(display); | 413 | gui_textarea_update(display); |