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) int lines; #ifdef HAVE_LCD_BITMAP int item_offset; - int old_xmargin = display->getxmargin(); - int old_ymargin = display->getymargin(); + int old_margin = display->getxmargin(); #endif gui_textarea_clear(display); @@ -408,7 +407,7 @@ static void gui_list_draw(struct gui_list * gui_list) gui_list->start_item + lines, VERTICAL); } - display->setmargins(old_xmargin, old_ymargin); + screen_set_xmargin(display, old_margin); #endif gui_textarea_update(display); diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 78998166ec..5283e40f4b 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -646,6 +646,7 @@ int solitaire_menu(bool in_game) break; case 3: + rb->lcd_setmargins(0, 0); if (solitaire_help() == HELP_USB) result = MENU_USB; break; @@ -656,6 +657,7 @@ int solitaire_menu(bool in_game) } } rb->menu_exit(m); + rb->lcd_setmargins(0, 0); return result; } diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index d63684b793..543b5c0d1d 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -1287,6 +1287,8 @@ 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) @@ -1326,6 +1328,9 @@ static void viewer_menu(void) break; } rb->menu_exit(m); +#ifdef HAVE_LCD_BITMAP + rb->lcd_setmargins(0,0); +#endif viewer_draw(col); }