summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 69ccbc035f..4da56776aa 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -461,7 +461,8 @@ bool pitch_screen(void)
461#endif 461#endif
462 462
463#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H100_PAD) ||\ 463#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H100_PAD) ||\
464 (CONFIG_KEYPAD == IRIVER_H300_PAD) 464 (CONFIG_KEYPAD == IRIVER_H300_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) ||\
465 (CONFIG_KEYPAD == IPOD_3G_PAD)
465#define bool_to_int(b)\ 466#define bool_to_int(b)\
466 b?1:0 467 b?1:0
467#define int_to_bool(i)\ 468#define int_to_bool(i)\
@@ -480,6 +481,12 @@ bool quick_screen_quick(int button_enter)
480 struct option_select left_option; 481 struct option_select left_option;
481 struct option_select bottom_option; 482 struct option_select bottom_option;
482 struct option_select right_option; 483 struct option_select right_option;
484 int old_x_margin, old_y_margin;
485
486 old_x_margin = lcd_getxmargin();
487 old_y_margin = lcd_getymargin();
488 lcd_setmargins(0, 0);
489
483 static const struct opt_items left_items[] = { 490 static const struct opt_items left_items[] = {
484 [0]={ STR(LANG_OFF) }, 491 [0]={ STR(LANG_OFF) },
485 [1]={ STR(LANG_ON) } 492 [1]={ STR(LANG_ON) }
@@ -541,6 +548,7 @@ bool quick_screen_quick(int button_enter)
541 } 548 }
542 settings_save(); 549 settings_save();
543 } 550 }
551 lcd_setmargins(old_x_margin, old_y_margin);
544 return(res); 552 return(res);
545} 553}
546 554
@@ -563,6 +571,12 @@ bool quick_screen_f3(int button_enter)
563 struct option_select left_option; 571 struct option_select left_option;
564 struct option_select bottom_option; 572 struct option_select bottom_option;
565 struct option_select right_option; 573 struct option_select right_option;
574 int old_x_margin, old_y_margin;
575
576 old_x_margin = lcd_getxmargin();
577 old_y_margin = lcd_getymargin();
578 lcd_setmargins(0, 0);
579
566 static const struct opt_items onoff_items[] = { 580 static const struct opt_items onoff_items[] = {
567 [0]={ STR(LANG_OFF) }, 581 [0]={ STR(LANG_OFF) },
568 [1]={ STR(LANG_ON) } 582 [1]={ STR(LANG_ON) }
@@ -594,6 +608,7 @@ bool quick_screen_f3(int button_enter)
594 res=gui_syncquickscreen_run(&qs, button_enter); 608 res=gui_syncquickscreen_run(&qs, button_enter);
595 if(!res) 609 if(!res)
596 settings_save(); 610 settings_save();
611 lcd_setmargins(old_x_margin, old_y_margin);
597 return(res); 612 return(res);
598} 613}
599#endif /* BUTTON_F3 */ 614#endif /* BUTTON_F3 */