From 3e496e3ecf60db743cfe82e57b82b72764e20f39 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 20 Feb 2006 00:31:10 +0000 Subject: 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 --- uisimulator/common/lcd-playersim.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'uisimulator/common/lcd-playersim.c') 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 @@ #define CHAR_WIDTH 6 #define CHAR_HEIGHT 8 -#define ICON_HEIGHT 24 +#define ICON_HEIGHT 12 #define CHAR_PIXEL 2 -#define BORDER_MARGIN 2 +#define BORDER_MARGIN 1 static int double_height=1; extern bool lcd_display_redraw; @@ -47,13 +47,13 @@ extern unsigned char hardware_buffer_lcd[11][2]; void lcd_print_icon(int x, int icon_line, bool enable, char **icon) { int xpos = x; - int ypos = icon_line*(ICON_HEIGHT+CHAR_HEIGHT*2*4); + int ypos = icon_line*(ICON_HEIGHT+(CHAR_HEIGHT*2+2)*CHAR_PIXEL); int row=0, col; int p=0, cp=0; struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; - + while (icon[row]) { col=0; while (icon[row][col]) { -- cgit v1.2.3