diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-08-13 20:55:08 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-13 20:55:08 +0000 |
commit | f385e36a05966e0df8da1f8cf1222fd42171500f (patch) | |
tree | 6f53bd3b37a100dc131535125f6298b4fb30e30e /apps | |
parent | 5e3e8162ec9bf43b996817f13b1f0bb1ede9997d (diff) | |
download | rockbox-f385e36a05966e0df8da1f8cf1222fd42171500f.tar.gz rockbox-f385e36a05966e0df8da1f8cf1222fd42171500f.zip |
Getting a few pixels more filename display width by using a smaller cursor icon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1723 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/icons.c | 2 | ||||
-rw-r--r-- | apps/tree.c | 8 | ||||
-rw-r--r-- | apps/wps.c | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index a6df8c9c23..e094a12400 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c | |||
@@ -63,7 +63,7 @@ unsigned char bitmap_icons_6x8[LastIcon][6] = | |||
63 | /* Selected */ | 63 | /* Selected */ |
64 | { 0x00, 0x1c, 0x3e, 0x3e, 0x3e, 0x1c }, | 64 | { 0x00, 0x1c, 0x3e, 0x3e, 0x3e, 0x1c }, |
65 | /* Cursor / Marker */ | 65 | /* Cursor / Marker */ |
66 | { 0x7f, 0x3e, 0x1c, 0x08, 0x00, 0x00 }, | 66 | { 0x3e, 0x1c, 0x08, 0x00, 0x00, 0x00 }, |
67 | }; | 67 | }; |
68 | 68 | ||
69 | static unsigned char bitmap_icon_7x8[][7] = | 69 | static unsigned char bitmap_icon_7x8[][7] = |
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 | ||
diff --git a/apps/wps.c b/apps/wps.c index 25ec9a7125..acb6d90a13 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -361,6 +361,8 @@ int wps_show(void) | |||
361 | #ifdef HAVE_LCD_CHARCELLS | 361 | #ifdef HAVE_LCD_CHARCELLS |
362 | lcd_icon(ICON_AUDIO, true); | 362 | lcd_icon(ICON_AUDIO, true); |
363 | lcd_icon(ICON_PARAM, false); | 363 | lcd_icon(ICON_PARAM, false); |
364 | #else | ||
365 | lcd_setmargins(0,0); | ||
364 | #endif | 366 | #endif |
365 | 367 | ||
366 | if(mpeg_is_playing()) | 368 | if(mpeg_is_playing()) |