diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-02-20 00:31:10 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-02-20 00:31:10 +0000 |
commit | 3e496e3ecf60db743cfe82e57b82b72764e20f39 (patch) | |
tree | 833798e58b5bfd3428cfaaa6d8d1c95ba8681a8a /uisimulator/common/lcd-playersim.c | |
parent | da8db11e2872904c842454443475dcca98366a7e (diff) | |
download | rockbox-3e496e3ecf60db743cfe82e57b82b72764e20f39.tar.gz rockbox-3e496e3ecf60db743cfe82e57b82b72764e20f39.zip |
Reworked player simulator icons to fit the changed charcell scale factor and look more like the actual icons. Adapted player sim display sizes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8745 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common/lcd-playersim.c')
-rw-r--r-- | uisimulator/common/lcd-playersim.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uisimulator/common/lcd-playersim.c b/uisimulator/common/lcd-playersim.c index 156f83e639..0e10acf437 100644 --- a/uisimulator/common/lcd-playersim.c +++ b/uisimulator/common/lcd-playersim.c | |||
@@ -34,9 +34,9 @@ | |||
34 | 34 | ||
35 | #define CHAR_WIDTH 6 | 35 | #define CHAR_WIDTH 6 |
36 | #define CHAR_HEIGHT 8 | 36 | #define CHAR_HEIGHT 8 |
37 | #define ICON_HEIGHT 24 | 37 | #define ICON_HEIGHT 12 |
38 | #define CHAR_PIXEL 2 | 38 | #define CHAR_PIXEL 2 |
39 | #define BORDER_MARGIN 2 | 39 | #define BORDER_MARGIN 1 |
40 | 40 | ||
41 | static int double_height=1; | 41 | static int double_height=1; |
42 | extern bool lcd_display_redraw; | 42 | extern bool lcd_display_redraw; |
@@ -47,13 +47,13 @@ extern unsigned char hardware_buffer_lcd[11][2]; | |||
47 | void lcd_print_icon(int x, int icon_line, bool enable, char **icon) | 47 | void lcd_print_icon(int x, int icon_line, bool enable, char **icon) |
48 | { | 48 | { |
49 | int xpos = x; | 49 | int xpos = x; |
50 | int ypos = icon_line*(ICON_HEIGHT+CHAR_HEIGHT*2*4); | 50 | int ypos = icon_line*(ICON_HEIGHT+(CHAR_HEIGHT*2+2)*CHAR_PIXEL); |
51 | int row=0, col; | 51 | int row=0, col; |
52 | 52 | ||
53 | int p=0, cp=0; | 53 | int p=0, cp=0; |
54 | struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; | 54 | struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; |
55 | struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; | 55 | struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; |
56 | 56 | ||
57 | while (icon[row]) { | 57 | while (icon[row]) { |
58 | col=0; | 58 | col=0; |
59 | while (icon[row][col]) { | 59 | while (icon[row][col]) { |