diff options
Diffstat (limited to 'uisimulator/screensaver.c')
-rw-r--r-- | uisimulator/screensaver.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uisimulator/screensaver.c b/uisimulator/screensaver.c index a4166f20b4..a85ccf965d 100644 --- a/uisimulator/screensaver.c +++ b/uisimulator/screensaver.c | |||
@@ -84,11 +84,11 @@ void ss_loop(void) | |||
84 | 84 | ||
85 | void screensaver(void) | 85 | void screensaver(void) |
86 | { | 86 | { |
87 | char w, h; | 87 | int w, h; |
88 | char *off = "[Off] to stop"; | 88 | char *off = "[Off] to stop"; |
89 | int len = strlen(SS_TITLE); | 89 | int len = strlen(SS_TITLE); |
90 | 90 | ||
91 | lcd_fontsize(SS_TITLE_FONT, &w, &h); | 91 | lcd_getfontsize(SS_TITLE_FONT, &w, &h); |
92 | 92 | ||
93 | /* Get horizontel centering for text */ | 93 | /* Get horizontel centering for text */ |
94 | len *= w; | 94 | len *= w; |
@@ -103,10 +103,10 @@ void screensaver(void) | |||
103 | h /= 2; | 103 | h /= 2; |
104 | 104 | ||
105 | lcd_clear_display(); | 105 | lcd_clear_display(); |
106 | lcd_puts(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE, SS_TITLE_FONT); | 106 | lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE, SS_TITLE_FONT); |
107 | 107 | ||
108 | len = strlen(off); | 108 | len = strlen(off); |
109 | lcd_fontsize(0, &w, &h); | 109 | lcd_getfontsize(0, &w, &h); |
110 | 110 | ||
111 | /* Get horizontel centering for text */ | 111 | /* Get horizontel centering for text */ |
112 | len *= w; | 112 | len *= w; |
@@ -120,7 +120,7 @@ void screensaver(void) | |||
120 | else | 120 | else |
121 | h /= 2; | 121 | h /= 2; |
122 | 122 | ||
123 | lcd_puts(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off, 0); | 123 | lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off,0); |
124 | 124 | ||
125 | lcd_update(); | 125 | lcd_update(); |
126 | sleep(150); | 126 | sleep(150); |