summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-02-02 03:14:51 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-02-02 03:14:51 +0000
commit701a593c5df9bbf88711781e1abdb09690076034 (patch)
treeb81c31a5f3718f3eb9fd18652571ee1c89aed994
parent1a00056f1f225ee0d1643d3e4e603de171f7ab9a (diff)
downloadrockbox-701a593c5df9bbf88711781e1abdb09690076034.tar.gz
rockbox-701a593c5df9bbf88711781e1abdb09690076034.zip
continuation of last nights statusbar cleanup.
accept FS#9858 and FS#9859 make the rec and fm screens force the statusbar the correct way now which doesnt need extra status variables git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19904 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/statusbar.c5
-rw-r--r--apps/gui/statusbar.h1
-rw-r--r--apps/menus/recording_menu.c15
-rw-r--r--apps/recorder/keyboard.c2
-rw-r--r--apps/recorder/peakmeter.c4
-rw-r--r--apps/recorder/peakmeter.h3
-rw-r--r--apps/recorder/radio.c15
-rw-r--r--apps/recorder/recording.c43
-rw-r--r--apps/settings.c8
-rw-r--r--apps/settings.h5
-rw-r--r--apps/settings_list.c3
11 files changed, 42 insertions, 62 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c
index e258821ae1..d420b96342 100644
--- a/apps/gui/statusbar.c
+++ b/apps/gui/statusbar.c
@@ -813,11 +813,6 @@ void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars,
813 } 813 }
814} 814}
815 815
816int gui_statusbar_height(void)
817{
818 return global_settings.statusbar ? STATUSBAR_HEIGHT : 0;
819}
820
821void gui_statusbar_changed(bool enabled) 816void gui_statusbar_changed(bool enabled)
822{ 817{
823 (void)enabled; 818 (void)enabled;
diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h
index 99acf9d006..f6203c22d9 100644
--- a/apps/gui/statusbar.h
+++ b/apps/gui/statusbar.h
@@ -98,7 +98,6 @@ struct gui_syncstatusbar
98 98
99extern void gui_syncstatusbar_init(struct gui_syncstatusbar * bars); 99extern void gui_syncstatusbar_init(struct gui_syncstatusbar * bars);
100extern void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, bool force_redraw); 100extern void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, bool force_redraw);
101extern int gui_statusbar_height(void);
102void gui_statusbar_changed(bool enabled); 101void gui_statusbar_changed(bool enabled);
103 102
104#endif /*_GUI_STATUSBAR_H_*/ 103#endif /*_GUI_STATUSBAR_H_*/
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c
index b9f5f7be78..435ebb6ba3 100644
--- a/apps/menus/recording_menu.c
+++ b/apps/menus/recording_menu.c
@@ -458,7 +458,7 @@ static void trigger_speak_item(const struct settings_list **settings,
458} 458}
459int rectrigger(void) 459int rectrigger(void)
460{ 460{
461 struct viewport vp[NB_SCREENS]; 461 struct viewport vp[NB_SCREENS], triggervp[NB_SCREENS];
462 struct gui_synclist lists; 462 struct gui_synclist lists;
463 int i, action = ACTION_REDRAW; 463 int i, action = ACTION_REDRAW;
464 bool done = false, changed = true; 464 bool done = false, changed = true;
@@ -488,12 +488,15 @@ int rectrigger(void)
488 screens[i].update(); 488 screens[i].update();
489 viewport_set_defaults(&vp[i], i); 489 viewport_set_defaults(&vp[i], i);
490 vp[i].height -= SYSFONT_HEIGHT*2; 490 vp[i].height -= SYSFONT_HEIGHT*2;
491 triggervp[i] = vp[i];
492 triggervp[i].y = vp[i].y + vp[i].height;
493 triggervp[i].height = SYSFONT_HEIGHT*2;
491 trig_xpos[i] = 0; 494 trig_xpos[i] = 0;
492 trig_ypos[i] = vp[i].y + vp[i].height; 495 trig_ypos[i] = 0;
493 pm_x[i] = 0; 496 pm_x[i] = 0;
494 pm_y[i] = screens[i].getheight() - SYSFONT_HEIGHT; 497 pm_y[i] = SYSFONT_HEIGHT;
495 pm_h[i] = SYSFONT_HEIGHT; 498 pm_h[i] = SYSFONT_HEIGHT;
496 trig_width[i] = screens[i].getwidth(); 499 trig_width[i] = triggervp[i].width;
497 } 500 }
498 /* TODO: what to do if there is < 4 lines on the screen? */ 501 /* TODO: what to do if there is < 4 lines on the screen? */
499 502
@@ -542,9 +545,11 @@ int rectrigger(void)
542 changed = false; 545 changed = false;
543 } 546 }
544 547
548 FOR_NB_SCREENS(i)
549 screens[i].set_viewport(&triggervp[i]);
545 peak_meter_draw_trig(trig_xpos, trig_ypos, trig_width, NB_SCREENS); 550 peak_meter_draw_trig(trig_xpos, trig_ypos, trig_width, NB_SCREENS);
546 action = peak_meter_draw_get_btn(CONTEXT_SETTINGS_RECTRIGGER, 551 action = peak_meter_draw_get_btn(CONTEXT_SETTINGS_RECTRIGGER,
547 pm_x, pm_y, pm_h, NB_SCREENS); 552 pm_x, pm_y, pm_h, NB_SCREENS, triggervp);
548 FOR_NB_SCREENS(i) 553 FOR_NB_SCREENS(i)
549 screens[i].update(); 554 screens[i].update();
550 i = gui_synclist_get_sel_pos(&lists); 555 i = gui_synclist_get_sel_pos(&lists);
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 02b1759a8a..a30871015b 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -298,7 +298,7 @@ int kbd_input(char* text, int buflen)
298 int morse_tick = 0; 298 int morse_tick = 0;
299 char buf[2]; 299 char buf[2];
300#endif 300#endif
301 char oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); 301 int oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL);
302 FOR_NB_SCREENS(l) 302 FOR_NB_SCREENS(l)
303 { 303 {
304 struct keyboard_parameters *pm = &param[l]; 304 struct keyboard_parameters *pm = &param[l];
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 422b138020..18026292ad 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -1329,7 +1329,8 @@ void peak_meter_draw_trig(int xpos[], int ypos[],
1329#endif 1329#endif
1330 1330
1331int peak_meter_draw_get_btn(int action_context, int x[], int y[], 1331int peak_meter_draw_get_btn(int action_context, int x[], int y[],
1332 int height[], int nb_screens) 1332 int height[], int nb_screens,
1333 struct viewport vps[])
1333{ 1334{
1334 int button = BUTTON_NONE; 1335 int button = BUTTON_NONE;
1335 long next_refresh = current_tick; 1336 long next_refresh = current_tick;
@@ -1362,6 +1363,7 @@ int peak_meter_draw_get_btn(int action_context, int x[], int y[],
1362 if (TIME_AFTER(current_tick, next_refresh)) { 1363 if (TIME_AFTER(current_tick, next_refresh)) {
1363 for(i = 0; i < nb_screens; i++) 1364 for(i = 0; i < nb_screens; i++)
1364 { 1365 {
1366 screens[i].set_viewport(&vps[i]);
1365 peak_meter_screen(&screens[i], x[i], y[i], height[i]); 1367 peak_meter_screen(&screens[i], x[i], y[i], height[i]);
1366 screens[i].update_viewport_rect(x[i], y[i], 1368 screens[i].update_viewport_rect(x[i], y[i],
1367 screens[i].getwidth() - x[i], 1369 screens[i].getwidth() - x[i],
diff --git a/apps/recorder/peakmeter.h b/apps/recorder/peakmeter.h
index 8d3e92939f..6fc2d6be58 100644
--- a/apps/recorder/peakmeter.h
+++ b/apps/recorder/peakmeter.h
@@ -36,7 +36,8 @@ extern bool peak_meter_enabled;
36 36
37extern void peak_meter_playback(bool playback); 37extern void peak_meter_playback(bool playback);
38extern int peak_meter_draw_get_btn(int action_context, int x[], int y[], 38extern int peak_meter_draw_get_btn(int action_context, int x[], int y[],
39 int height[], int nb_screens); 39 int height[], int nb_screens,
40 struct viewport vps[]);
40extern void peak_meter_set_clip_hold(int time); 41extern void peak_meter_set_clip_hold(int time);
41extern void peak_meter_peek(void); 42extern void peak_meter_peek(void);
42extern void peak_meter_init_range( bool dbfs, int range_min, int range_max); 43extern void peak_meter_init_range( bool dbfs, int range_min, int range_max);
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index d01d24ccf2..8c8c56cb34 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -459,7 +459,6 @@ int radio_screen(void)
459 bool update_screen = true; 459 bool update_screen = true;
460 bool screen_freeze = false; 460 bool screen_freeze = false;
461 bool keep_playing = false; 461 bool keep_playing = false;
462 bool statusbar = global_settings.statusbar;
463 bool talk = false; 462 bool talk = false;
464#ifdef FM_RECORD_DBLPRE 463#ifdef FM_RECORD_DBLPRE
465 int lastbutton = BUTTON_NONE; 464 int lastbutton = BUTTON_NONE;
@@ -477,6 +476,7 @@ int radio_screen(void)
477 int button_timeout = current_tick + (2*HZ); 476 int button_timeout = current_tick + (2*HZ);
478#endif 477#endif
479 struct viewport vp[NB_SCREENS]; 478 struct viewport vp[NB_SCREENS];
479 int oldbars = 0, fmbars = VP_SB_ALLSCREENS;
480#ifdef HAVE_BUTTONBAR 480#ifdef HAVE_BUTTONBAR
481 struct gui_buttonbar buttonbar; 481 struct gui_buttonbar buttonbar;
482 gui_buttonbar_init(&buttonbar); 482 gui_buttonbar_init(&buttonbar);
@@ -487,8 +487,9 @@ int radio_screen(void)
487 in_screen = true; 487 in_screen = true;
488 488
489 /* always display status bar in radio screen for now */ 489 /* always display status bar in radio screen for now */
490 global_status.statusbar_forced = statusbar?0:1; 490 FOR_NB_SCREENS(i)
491 global_settings.statusbar = true; 491 fmbars |= VP_SB_IGNORE_SETTING(i);
492 oldbars = viewportmanager_set_statusbar(fmbars);
492 FOR_NB_SCREENS(i) 493 FOR_NB_SCREENS(i)
493 { 494 {
494 viewport_set_defaults(&vp[i], i); 495 viewport_set_defaults(&vp[i], i);
@@ -744,8 +745,10 @@ int radio_screen(void)
744 break; 745 break;
745 746
746 case ACTION_FM_MENU: 747 case ACTION_FM_MENU:
748 viewportmanager_set_statusbar(oldbars);
747 radio_menu(); 749 radio_menu();
748 curr_preset = find_preset(curr_freq); 750 curr_preset = find_preset(curr_freq);
751 viewportmanager_set_statusbar(fmbars);
749 FOR_NB_SCREENS(i) 752 FOR_NB_SCREENS(i)
750 { 753 {
751 screens[i].set_viewport(&vp[i]); 754 screens[i].set_viewport(&vp[i]);
@@ -777,7 +780,9 @@ int radio_screen(void)
777 780
778 break; 781 break;
779 } 782 }
783 viewportmanager_set_statusbar(oldbars);
780 handle_radio_presets(); 784 handle_radio_presets();
785 viewportmanager_set_statusbar(fmbars);
781 FOR_NB_SCREENS(i) 786 FOR_NB_SCREENS(i)
782 { 787 {
783 screens[i].set_viewport(&vp[i]); 788 screens[i].set_viewport(&vp[i]);
@@ -1073,9 +1078,7 @@ int radio_screen(void)
1073 cpu_idle_mode(false); 1078 cpu_idle_mode(false);
1074#endif 1079#endif
1075 1080
1076 /* restore status bar settings */ 1081 viewportmanager_set_statusbar(oldbars);
1077 global_settings.statusbar = statusbar;
1078 global_status.statusbar_forced = 0;
1079 in_screen = false; 1082 in_screen = false;
1080#if CONFIG_CODEC != SWCODEC 1083#if CONFIG_CODEC != SWCODEC
1081 return have_recorded; 1084 return have_recorded;
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index bdf30212f7..c660867f2f 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -1021,6 +1021,7 @@ bool recording_screen(bool no_source)
1021 int peak_l, peak_r; 1021 int peak_l, peak_r;
1022 int balance = 0; 1022 int balance = 0;
1023#endif 1023#endif
1024 int oldbars, recbars = VP_SB_ALLSCREENS;
1024 int i; 1025 int i;
1025 int pm_x[NB_SCREENS]; /* peakmeter (and trigger bar) x pos */ 1026 int pm_x[NB_SCREENS]; /* peakmeter (and trigger bar) x pos */
1026 int pm_y[NB_SCREENS]; /* peakmeter y pos */ 1027 int pm_y[NB_SCREENS]; /* peakmeter y pos */
@@ -1034,12 +1035,6 @@ bool recording_screen(bool no_source)
1034 int prev_rec_source = global_settings.rec_source; /* detect source change */ 1035 int prev_rec_source = global_settings.rec_source; /* detect source change */
1035#endif 1036#endif
1036 1037
1037#if CONFIG_TUNER
1038 bool statusbar = global_settings.statusbar;
1039 global_status.statusbar_forced = statusbar?0:1;
1040 global_settings.statusbar = true;
1041#endif
1042
1043 static const unsigned char *byte_units[] = { 1038 static const unsigned char *byte_units[] = {
1044 ID2P(LANG_BYTE), 1039 ID2P(LANG_BYTE),
1045 ID2P(LANG_KILOBYTE), 1040 ID2P(LANG_KILOBYTE),
@@ -1096,6 +1091,9 @@ bool recording_screen(bool no_source)
1096 1091
1097 /* viewport init and calculations that only needs to be done once */ 1092 /* viewport init and calculations that only needs to be done once */
1098 FOR_NB_SCREENS(i) 1093 FOR_NB_SCREENS(i)
1094 recbars |= VP_SB_IGNORE_SETTING(i);
1095 oldbars = viewportmanager_set_statusbar(recbars);
1096 FOR_NB_SCREENS(i)
1099 { 1097 {
1100 struct viewport *v; 1098 struct viewport *v;
1101 /* top vp, 4 lines, force sys font if total screen < 6 lines 1099 /* top vp, 4 lines, force sys font if total screen < 6 lines
@@ -1169,8 +1167,6 @@ bool recording_screen(bool no_source)
1169 if(compact_view[i]) 1167 if(compact_view[i])
1170 pm_h[i] /= 2; 1168 pm_h[i] /= 2;
1171 trig_width[i] = vp_top[i].width - pm_x[i]; 1169 trig_width[i] = vp_top[i].width - pm_x[i];
1172 screens[i].clear_display();
1173 screens[i].update();
1174 } 1170 }
1175 1171
1176#if CONFIG_CODEC == SWCODEC 1172#if CONFIG_CODEC == SWCODEC
@@ -1307,15 +1303,10 @@ bool recording_screen(bool no_source)
1307 } 1303 }
1308#endif /* CONFIG_LED */ 1304#endif /* CONFIG_LED */
1309 1305
1310 /* first set current vp - stays like this for drawing that follows */
1311 FOR_NB_SCREENS(i)
1312 screens[i].set_viewport(&vp_top[i]);
1313
1314 /* Wait for a button a while (HZ/10) drawing the peak meter */ 1306 /* Wait for a button a while (HZ/10) drawing the peak meter */
1315 button = peak_meter_draw_get_btn(CONTEXT_RECSCREEN, 1307 button = peak_meter_draw_get_btn(CONTEXT_RECSCREEN,
1316 pm_x, pm_y, pm_h, 1308 pm_x, pm_y, pm_h,
1317 screen_update); 1309 screen_update, vp_top);
1318
1319 if (last_audio_stat != audio_stat) 1310 if (last_audio_stat != audio_stat)
1320 { 1311 {
1321 if (audio_stat & AUDIO_STATUS_RECORD) 1312 if (audio_stat & AUDIO_STATUS_RECORD)
@@ -1336,9 +1327,6 @@ bool recording_screen(bool no_source)
1336 /* let list handle the button */ 1327 /* let list handle the button */
1337 gui_synclist_do_button(&lists, &button, LIST_WRAP_UNLESS_HELD); 1328 gui_synclist_do_button(&lists, &button, LIST_WRAP_UNLESS_HELD);
1338 1329
1339 /* list code changes active viewport - change it back */
1340 FOR_NB_SCREENS(i)
1341 screens[i].set_viewport(&vp_top[i]);
1342 1330
1343 switch(button) 1331 switch(button)
1344 { 1332 {
@@ -1599,6 +1587,7 @@ bool recording_screen(bool no_source)
1599 /* led is restored at begin of loop / end of function */ 1587 /* led is restored at begin of loop / end of function */
1600 led(false); 1588 led(false);
1601#endif 1589#endif
1590 viewportmanager_set_statusbar(oldbars);
1602 if (recording_menu(no_source)) 1591 if (recording_menu(no_source))
1603 { 1592 {
1604 done = 1; 1593 done = 1;
@@ -1612,6 +1601,7 @@ bool recording_screen(bool no_source)
1612 done = -1; 1601 done = -1;
1613 /* the init is now done at the beginning of the loop */ 1602 /* the init is now done at the beginning of the loop */
1614 } 1603 }
1604 viewportmanager_set_statusbar(recbars);
1615 } 1605 }
1616 break; 1606 break;
1617 1607
@@ -1623,6 +1613,7 @@ bool recording_screen(bool no_source)
1623 /* led is restored at begin of loop / end of function */ 1613 /* led is restored at begin of loop / end of function */
1624 led(false); 1614 led(false);
1625#endif 1615#endif
1616 viewportmanager_set_statusbar(oldbars);
1626 if (f2_rec_screen()) 1617 if (f2_rec_screen())
1627 { 1618 {
1628 rec_status |= RCSTAT_HAVE_RECORDED; 1619 rec_status |= RCSTAT_HAVE_RECORDED;
@@ -1630,6 +1621,7 @@ bool recording_screen(bool no_source)
1630 } 1621 }
1631 else 1622 else
1632 update_countdown = 0; /* Update immediately */ 1623 update_countdown = 0; /* Update immediately */
1624 viewportmanager_set_statusbar(recbars);
1633 } 1625 }
1634 break; 1626 break;
1635 1627
@@ -1645,6 +1637,7 @@ bool recording_screen(bool no_source)
1645 /* led is restored at begin of loop / end of function */ 1637 /* led is restored at begin of loop / end of function */
1646 led(false); 1638 led(false);
1647#endif 1639#endif
1640 viewportmanager_set_statusbar(oldbars);
1648 if (f3_rec_screen()) 1641 if (f3_rec_screen())
1649 { 1642 {
1650 rec_status |= RCSTAT_HAVE_RECORDED; 1643 rec_status |= RCSTAT_HAVE_RECORDED;
@@ -1652,6 +1645,7 @@ bool recording_screen(bool no_source)
1652 } 1645 }
1653 else 1646 else
1654 update_countdown = 0; /* Update immediately */ 1647 update_countdown = 0; /* Update immediately */
1648 viewportmanager_set_statusbar(recbars);
1655 } 1649 }
1656 break; 1650 break;
1657#endif /* CONFIG_KEYPAD == RECORDER_PAD */ 1651#endif /* CONFIG_KEYPAD == RECORDER_PAD */
@@ -1692,10 +1686,12 @@ bool recording_screen(bool no_source)
1692 unsigned int dseconds, dhours, dminutes; 1686 unsigned int dseconds, dhours, dminutes;
1693 unsigned long num_recorded_bytes, dsize, dmb; 1687 unsigned long num_recorded_bytes, dsize, dmb;
1694 1688
1695 /* we assume vp_top is the current viewport! */ 1689
1696 FOR_NB_ACTIVE_SCREENS(i) 1690 FOR_NB_SCREENS(i)
1691 {
1692 screens[i].set_viewport(&vp_top[i]);
1697 screens[i].clear_viewport(); 1693 screens[i].clear_viewport();
1698 1694 }
1699 update_countdown = 5; 1695 update_countdown = 5;
1700 last_seconds = seconds; 1696 last_seconds = seconds;
1701 1697
@@ -1863,7 +1859,6 @@ bool recording_screen(bool no_source)
1863 /* draw peakmeter again (check if this can be removed) */ 1859 /* draw peakmeter again (check if this can be removed) */
1864 FOR_NB_ACTIVE_SCREENS(i) 1860 FOR_NB_ACTIVE_SCREENS(i)
1865 { 1861 {
1866 gui_statusbar_draw(&(statusbars.statusbars[i]), true);
1867 screens[i].set_viewport(&vp_top[i]); 1862 screens[i].set_viewport(&vp_top[i]);
1868 peak_meter_screen(&screens[i], pm_x[i], pm_y[i], pm_h[i]); 1863 peak_meter_screen(&screens[i], pm_x[i], pm_y[i], pm_h[i]);
1869 screens[i].update(); 1864 screens[i].update();
@@ -1930,6 +1925,7 @@ rec_abort:
1930 rec_status &= ~RCSTAT_IN_RECSCREEN; 1925 rec_status &= ~RCSTAT_IN_RECSCREEN;
1931 sound_settings_apply(); 1926 sound_settings_apply();
1932 1927
1928 viewportmanager_set_statusbar(oldbars);
1933 FOR_NB_SCREENS(i) 1929 FOR_NB_SCREENS(i)
1934 screens[i].setfont(FONT_UI); 1930 screens[i].setfont(FONT_UI);
1935 1931
@@ -1943,11 +1939,6 @@ rec_abort:
1943 ata_set_led_enabled(true); 1939 ata_set_led_enabled(true);
1944#endif 1940#endif
1945 1941
1946#if CONFIG_TUNER
1947 global_settings.statusbar = statusbar;
1948 global_status.statusbar_forced = 0;
1949#endif
1950
1951 settings_save(); 1942 settings_save();
1952 1943
1953 return (rec_status & RCSTAT_BEEN_IN_USB_MODE) != 0; 1944 return (rec_status & RCSTAT_BEEN_IN_USB_MODE) != 0;
diff --git a/apps/settings.c b/apps/settings.c
index 7bbbe92a9b..506fd5b59d 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -522,11 +522,6 @@ static bool settings_write_config(const char* filename, int options)
522 fd = open(filename,O_CREAT|O_TRUNC|O_WRONLY); 522 fd = open(filename,O_CREAT|O_TRUNC|O_WRONLY);
523 if (fd < 0) 523 if (fd < 0)
524 return false; 524 return false;
525#if CONFIG_TUNER
526 bool statusbar = global_settings.statusbar;
527 if (global_status.statusbar_forced != 0 && statusbar)
528 global_settings.statusbar = false;
529#endif
530 fdprintf(fd, "# .cfg file created by rockbox %s - " 525 fdprintf(fd, "# .cfg file created by rockbox %s - "
531 "http://www.rockbox.org\r\n\r\n", appsversion); 526 "http://www.rockbox.org\r\n\r\n", appsversion);
532 for(i=0; i<nb_settings; i++) 527 for(i=0; i<nb_settings; i++)
@@ -567,9 +562,6 @@ static bool settings_write_config(const char* filename, int options)
567 fdprintf(fd,"%s: %s\r\n",settings[i].cfg_name,value); 562 fdprintf(fd,"%s: %s\r\n",settings[i].cfg_name,value);
568 } /* for(...) */ 563 } /* for(...) */
569 close(fd); 564 close(fd);
570#if CONFIG_TUNER
571 global_settings.statusbar = statusbar;
572#endif
573 return true; 565 return true;
574} 566}
575#ifndef HAVE_RTC_RAM 567#ifndef HAVE_RTC_RAM
diff --git a/apps/settings.h b/apps/settings.h
index 50c53718f7..3bb590c974 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -294,11 +294,6 @@ struct system_status
294#if CONFIG_TUNER 294#if CONFIG_TUNER
295 int last_frequency; /* Last frequency for resuming, in FREQ_STEP units, 295 int last_frequency; /* Last frequency for resuming, in FREQ_STEP units,
296 relative to MIN_FREQ */ 296 relative to MIN_FREQ */
297 int statusbar_forced; /* fix the bug where the statusbar would stay shown
298 if powered off inside the fm screen...
299 for some reason the screen doesnt use global_settings.statusbar
300 obviously a better fix is to fix the screen... so remove this
301 when that happens */
302#endif 297#endif
303 signed char last_screen; 298 signed char last_screen;
304 int viewer_icon_count; 299 int viewer_icon_count;
diff --git a/apps/settings_list.c b/apps/settings_list.c
index c855c70e10..97ca7cdca5 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -1425,9 +1425,6 @@ const struct settings_list settings[] = {
1425 3, "list_accel_wait", UNIT_SEC, 1, 10, 1, 1425 3, "list_accel_wait", UNIT_SEC, 1, 10, 1,
1426 scanaccel_formatter, getlang_unit_0_is_off, NULL), 1426 scanaccel_formatter, getlang_unit_0_is_off, NULL),
1427#endif /* HAVE_SCROLLWHEEL */ 1427#endif /* HAVE_SCROLLWHEEL */
1428#if CONFIG_TUNER
1429 SYSTEM_SETTING(0, statusbar_forced, 0),
1430#endif
1431#if CONFIG_CODEC == SWCODEC 1428#if CONFIG_CODEC == SWCODEC
1432 /* keyclick */ 1429 /* keyclick */
1433 CHOICE_SETTING(0, keyclick, LANG_KEYCLICK, 0, 1430 CHOICE_SETTING(0, keyclick, LANG_KEYCLICK, 0,