summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-24 07:32:36 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-24 07:32:36 +0000
commit35aae1ce9af1c57b5ce38dddb7ebe30af94636e7 (patch)
treeec2495dbdf58c230abfe09fa5091d623ff0b66cb /apps
parentb09df8019a2d9dbd1f235d6772714e5d642f7197 (diff)
downloadrockbox-35aae1ce9af1c57b5ce38dddb7ebe30af94636e7.tar.gz
rockbox-35aae1ce9af1c57b5ce38dddb7ebe30af94636e7.tar.bz2
rockbox-35aae1ce9af1c57b5ce38dddb7ebe30af94636e7.zip
Code policed C99-style variable declarations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9982 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/screens.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/screens.c b/apps/screens.c
index b7e4575534..401fe3d28a 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -525,10 +525,6 @@ bool quick_screen_quick(int button_enter)
struct option_select right_option;
int oldrepeat, old_x_margin, old_y_margin;
- old_x_margin = lcd_getxmargin();
- old_y_margin = lcd_getymargin();
- lcd_setmargins(0, 0);
-
static const struct opt_items left_items[] = {
[0]={ STR(LANG_OFF) },
[1]={ STR(LANG_ON) }
@@ -551,6 +547,10 @@ bool quick_screen_quick(int button_enter)
};
struct gui_quickscreen qs;
+ old_x_margin = lcd_getxmargin();
+ old_y_margin = lcd_getymargin();
+ lcd_setmargins(0, 0);
+
option_select_init_items(&left_option,
(char *)str(LANG_SHUFFLE),
bool_to_int(global_settings.playlist_shuffle),
@@ -615,10 +615,6 @@ bool quick_screen_f3(int button_enter)
struct option_select right_option;
int old_x_margin, old_y_margin;
- old_x_margin = lcd_getxmargin();
- old_y_margin = lcd_getymargin();
- lcd_setmargins(0, 0);
-
static const struct opt_items onoff_items[] = {
[0]={ STR(LANG_OFF) },
[1]={ STR(LANG_ON) }
@@ -630,6 +626,10 @@ bool quick_screen_f3(int button_enter)
struct gui_quickscreen qs;
+ old_x_margin = lcd_getxmargin();
+ old_y_margin = lcd_getymargin();
+ lcd_setmargins(0, 0);
+
option_select_init_items(&left_option,
str(LANG_SCROLL_BAR),
bool_to_int(global_settings.scrollbar),