summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2004-06-30 03:39:38 +0000
committerHardeep Sidhu <dyp@pobox.com>2004-06-30 03:39:38 +0000
commit7eb4692e0e2937cafa74dfe27475b951ab3483dd (patch)
treebc3adb1b03a97936316ecaf3fd1cd99eb42d68d4
parent9814089f6f45ef3225c101724d197502f175daad (diff)
Fixed simulator build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4815 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/clock.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/clock.c b/apps/plugins/clock.c
index 3dae622c60..1f91fc6100 100644
--- a/apps/plugins/clock.c
+++ b/apps/plugins/clock.c
@@ -489,6 +489,8 @@ void reset_settings(void)
*********************************/
void save_settings(void)
{
+ int fd;
+
rb->lcd_clear_display();
show_logo(true, true);
@@ -496,7 +498,6 @@ void save_settings(void)
rb->lcd_update();
- int fd;
fd = rb->creat(default_filename, O_WRONLY);
if(fd >= 0)
@@ -1403,13 +1404,13 @@ void f2_screen(void)
**********************/
bool f3_screen(void)
{
- done = false;
-
int invert_analog = 1;
int invert_digital = 1;
int invert_lcd = 1;
int invert_fullscreen = 1;
+ done = false;
+
while (!done)
{
rb->lcd_clear_display();
@@ -1958,8 +1959,6 @@ void draw_extras(int year, int day, int month, int hour, int minute, int second)
****************/
void select_mode(void)
{
- done = false;
-
int cursorpos = settings.clock;
bool a = false; /* (a)nalog */
bool d = false; /* (d)igital */
@@ -1967,6 +1966,8 @@ void select_mode(void)
bool f = false; /* (f)ullscreen */
bool b = false; /* (b)inary */
+ done = false;
+
while(!done)
{
rb->lcd_clear_display();