From 7eb4692e0e2937cafa74dfe27475b951ab3483dd Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Wed, 30 Jun 2004 03:39:38 +0000 Subject: Fixed simulator build git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4815 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/clock.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'apps') 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(); -- cgit v1.2.3