diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-06-12 15:17:34 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-06-12 15:17:34 +0000 |
commit | 23ed32cf4179ab8f174e72dd3887b9127babc013 (patch) | |
tree | 6088faea0a5c9d68f1fdc086610438cfbe3ebd47 /apps | |
parent | 4b422aaa366191462e430a9c18f368e5e784efa2 (diff) | |
download | rockbox-23ed32cf4179ab8f174e72dd3887b9127babc013.tar.gz rockbox-23ed32cf4179ab8f174e72dd3887b9127babc013.zip |
Set margins when clearing screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@978 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tree.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/tree.c b/apps/tree.c index 578225a540..ec71b5c5f3 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -149,6 +149,8 @@ static int showdir(char *path, int start) | |||
149 | lcd_clear_display(); | 149 | lcd_clear_display(); |
150 | #ifdef HAVE_LCD_BITMAP | 150 | #ifdef HAVE_LCD_BITMAP |
151 | lcd_putsxy(0,0, "[Browse]",0); | 151 | lcd_putsxy(0,0, "[Browse]",0); |
152 | lcd_setmargins(0,MARGIN_Y); | ||
153 | lcd_setfont(0); | ||
152 | lcd_update(); | 154 | lcd_update(); |
153 | #endif | 155 | #endif |
154 | 156 | ||
@@ -231,17 +233,9 @@ bool dirbrowse(char *root) | |||
231 | { | 233 | { |
232 | char buf[255]; | 234 | char buf[255]; |
233 | int i; | 235 | int i; |
234 | lcd_clear_display(); | ||
235 | 236 | ||
236 | #ifdef HAVE_LCD_BITMAP | ||
237 | lcd_putsxy(0,0, "[Browse]",0); | ||
238 | lcd_setmargins(0,MARGIN_Y); | ||
239 | lcd_setfont(0); | ||
240 | #endif | ||
241 | memcpy(currdir,root,sizeof(currdir)); | 237 | memcpy(currdir,root,sizeof(currdir)); |
242 | |||
243 | numentries = showdir(root, start); | 238 | numentries = showdir(root, start); |
244 | |||
245 | if (numentries == -1) | 239 | if (numentries == -1) |
246 | return -1; /* root is not a directory */ | 240 | return -1; /* root is not a directory */ |
247 | 241 | ||
@@ -314,7 +308,6 @@ bool dirbrowse(char *root) | |||
314 | playing = 0; | 308 | playing = 0; |
315 | } | 309 | } |
316 | } | 310 | } |
317 | |||
318 | numentries = showdir(currdir, start); | 311 | numentries = showdir(currdir, start); |
319 | lcd_puts(0, LINE_Y+dircursor, CURSOR_CHAR); | 312 | lcd_puts(0, LINE_Y+dircursor, CURSOR_CHAR); |
320 | break; | 313 | break; |