summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-18 09:16:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-18 09:16:47 +0000
commit49ed3e921eb2e91ac8f6c5cd26cfd11fc25dd8c1 (patch)
treee7c8ea2bab99b19746021681a178d9a6e3e69483 /apps/tree.c
parentd6b04045c0906d3c77222c2910274a87419622ac (diff)
downloadrockbox-49ed3e921eb2e91ac8f6c5cd26cfd11fc25dd8c1.zip
rockbox-49ed3e921eb2e91ac8f6c5cd26cfd11fc25dd8c1.tar.gz
rockbox-49ed3e921eb2e91ac8f6c5cd26cfd11fc25dd8c1.tar.bz2
rockbox-49ed3e921eb2e91ac8f6c5cd26cfd11fc25dd8c1.tar.xz
cut off the browse line to maximize the space used for dir browsing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1061 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 2392a66..efddf5f 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -60,16 +60,16 @@ void browse_root(void)
#ifdef HAVE_LCD_BITMAP
-#define TREE_MAX_ON_SCREEN 7
+#define TREE_MAX_ON_SCREEN ((LCD_HEIGHT-MARGIN_Y)/LINE_HEIGTH)
#define TREE_MAX_LEN_DISPLAY 16 /* max length that fits on screen */
-#define MARGIN_Y 8 /* Y pixel margin */
+#define MARGIN_Y 0 /* Y pixel margin */
#define MARGIN_X 12 /* X pixel margin */
#define LINE_Y 0 /* Y position the entry-list starts at */
#define LINE_X 2 /* X position the entry-list starts at */
#define LINE_HEIGTH 8 /* pixels for each text line */
-#define CURSOR_Y 1 /* the cursor is not positioned in regard to
+#define CURSOR_Y 0 /* the cursor is not positioned in regard to
the margins, so this is the amount of lines
we add to the cursor Y position to position
it on a line */
@@ -149,7 +149,6 @@ static int showdir(char *path, int start)
#endif
lcd_clear_display();
#ifdef HAVE_LCD_BITMAP
- lcd_putsxy(0,0, "[Browse]",0);
lcd_setmargins(0,MARGIN_Y);
lcd_setfont(0);
#endif