summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 8d16806304..8b98f2b940 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -73,9 +73,9 @@ void browse_root(void)
73#define TREE_MAX_LEN_DISPLAY 16 /* max length that fits on screen */ 73#define TREE_MAX_LEN_DISPLAY 16 /* max length that fits on screen */
74 74
75#define MARGIN_Y 0 /* Y pixel margin */ 75#define MARGIN_Y 0 /* Y pixel margin */
76#define MARGIN_X 12 /* X pixel margin */ 76#define MARGIN_X 10 /* X pixel margin */
77#define LINE_Y (global_settings.statusbar&&statusbar_enabled?1:0) /* Y position the entry-list starts at */ 77#define LINE_Y (global_settings.statusbar&&statusbar_enabled?1:0) /* Y position the entry-list starts at */
78#define LINE_X 2 /* X position the entry-list starts at */ 78#define LINE_X 0 /* X position the entry-list starts at */
79#define LINE_HEIGTH 8 /* pixels for each text line */ 79#define LINE_HEIGTH 8 /* pixels for each text line */
80 80
81#define CURSOR_Y 0 /* the cursor is not positioned in regard to 81#define CURSOR_Y 0 /* the cursor is not positioned in regard to
@@ -241,7 +241,7 @@ static int showdir(char *path, int start)
241#endif 241#endif
242 lcd_clear_display(); 242 lcd_clear_display();
243#ifdef HAVE_LCD_BITMAP 243#ifdef HAVE_LCD_BITMAP
244 lcd_setmargins(0,MARGIN_Y); 244 lcd_setmargins(MARGIN_X,MARGIN_Y); /* leave room for cursor and icon */
245 lcd_setfont(0); 245 lcd_setfont(0);
246#endif 246#endif
247 247
@@ -263,7 +263,7 @@ static int showdir(char *path, int start)
263 icon_type = File; 263 icon_type = File;
264 } 264 }
265 lcd_bitmap(bitmap_icons_6x8[icon_type], 265 lcd_bitmap(bitmap_icons_6x8[icon_type],
266 6, MARGIN_Y+(LINE_Y+i-start)*line_height, 6, 8, true); 266 4, MARGIN_Y+(LINE_Y+i-start)*line_height, 6, 8, true);
267#endif 267#endif
268 268
269 269