From 0d79fa127dfc1f5650d3701a174983de8f9e5e4d Mon Sep 17 00:00:00 2001 From: Mats Lidell Date: Thu, 31 Oct 2002 17:34:07 +0000 Subject: Icons created. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2792 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/sim_icons.c | 493 +++++++++++++++++++++++++++++++++-------- 1 file changed, 404 insertions(+), 89 deletions(-) (limited to 'uisimulator/common') diff --git a/uisimulator/common/sim_icons.c b/uisimulator/common/sim_icons.c index 1ec387c81d..2012e06e0e 100644 --- a/uisimulator/common/sim_icons.c +++ b/uisimulator/common/sim_icons.c @@ -28,81 +28,390 @@ extern void lcd_print_icon(int x, int icon_line, bool enable, char **icon); -static char* icon_battery_3[]= - { - "*************** ", - "* * ", - "* ** ** ** * ", - "* ** ** ** ***", - "* ** ** ** ***", - "* ** ** ** ***", - "* ** ** ** * ", - "* * ", - "*************** ",NULL - }; -static char* icon_battery_2[]= - { - "*************** ", - "* * ", - "* ** ** * ", - "* ** ** ***", - "* ** ** ***", - "* ** ** ***", - "* ** ** * ", - "* * ", - "*************** ",NULL - }; -static char* icon_battery_1[]= - { - "*************** ", - "* * ", - "* ** * ", - "* ** ***", - "* ** ***", - "* ** ***", - "* ** * ", - "* * ", - "*************** ",NULL - }; +static char* icon_battery_bit[]= +{ + "------", + "------", + "------", + "******", + "******", + "******", + "******", + "******", + "******", + "******", + "******", + "******", + "******", + "******", + "******", + "******", + "------", + "------", + "------", + NULL +}; + static char* icon_battery[]= - { - "*************** ", - "* * ", - "* * ", - "* ***", - "* ***", - "* ***", - "* * ", - "* * ", - "*************** ",NULL - }; +{ + " ********************************** ", + "* * ", + "* * ", + "* * ", + "* * ", + "* *****", + "* *****", + "* *****", + "* *****", + "* *****", + "* *****", + "* *****", + "* *****", + "* *****", + "* * ", + "* * ", + "* * ", + "* * ", + " ********************************** ", + NULL +}; static char* icon_volume[]= - { - "* * * ", - "* * * ", - "* * * ", - " * * * ", - " * * * ", - " * * * * ", - " * * * * ", - " * * * * ", - " * * * ",NULL - }; -static char* icon_volume_1[]={NULL}; -static char* icon_volume_2[]={NULL}; -static char* icon_volume_3[]={NULL}; -static char* icon_volume_4[]={NULL}; -static char* icon_volume_5[]={NULL}; - -static char* icon_pause[]={NULL}; -static char* icon_play[]={NULL}; -static char* icon_record[]={NULL}; -static char* icon_usb[]={NULL}; -static char* icon_audio[]={NULL}; -static char* icon_param[]={NULL}; -static char* icon_repeat[]={NULL}; -static char* icon_repeat2[]={NULL}; +{ + " ", + " ", + " ", + " ", + " ", + " ", + "* * * ", + "* * * ", + " * * * ", + " * * * ", + " * * * ", + " * * * ", + " * * * ", + " * * ** * ", + " * * * * * ", + " * * * * * ", + " * * * * * ", + " * * * * * ", + " * ** * ", + NULL +}; + +static char* icon_volume_1[]= +{ + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + "**", + "**", + "**", + NULL +}; + +static char* icon_volume_2[]= +{ + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + "**", + "**", + "**", + "**", + "**", + "**", + NULL +}; + +static char* icon_volume_3[]= +{ + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + NULL +}; + +static char* icon_volume_4[]= +{ + " ", + " ", + " ", + " ", + " ", + " ", + " ", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + NULL +}; + +static char* icon_volume_5[]= +{ + " ", + " ", + " ", + " ", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + "**", + NULL +}; + +static char* icon_pause[]= +{ + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + "**** ****", + NULL +}; + +static char* icon_play[]= +{ + "** ", + "**** ", + "****** ", + "******** ", + "********** ", + "************ ", + "************** ", + "**************** ", + "****************** ", + "******************** ", + "****************** ", + "**************** ", + "************** ", + "************ ", + "********** ", + "******** ", + "****** ", + "**** ", + "** ", + NULL +}; + +static char* icon_record[]= +{ + " ", + " ", + " ", + " ", + " *** ", + " ********* ", + " ************* ", + " *************** ", + "*****************", + "*****************", + "*****************", + " *************** ", + " ************* ", + " ********* ", + " *** ", + " ", + " ", + " ", + " ", + NULL +}; + +static char* icon_usb[]= +{ + " ", + " ", + " ************************** ", + " ** **** ", + " ** ", + " ** ", + " ** ", + " ** ", + " ** ", + " **** ** **** ", + "***************************************************", + " **** ** **** ", + " ** ", + " ** ", + " ** ", + " ** ", + " *** *** ", + " ***************** ", + " ", + NULL +}; + +static char* icon_audio[]= +{ + " ************************************** ", + " ****************************************** ", + " ** ** ", + " ** ** ", + " ** **** ** ** ****** ** **** ** ", + "** ****** ** ** ******* ** ****** **", + "** ** ** ** ** ** ** ** ** ** **", + "** ** ** ** ** ** ** ** ** ** **", + "** ** ** ** ** ** ** ** ** ** **", + "** ** ** ** ** ** ** ** ** ** **", + "** ******** ** ** ** ** ** ** ** **", + "** ******** ** ** ** ** ** ** ** **", + "** ** ** ** ** ** ** ** ** ** **", + "** ** ** ****** ******* ** ****** **", + " ** ** ** **** ****** ** **** ** ", + " ** ** ", + " ** ** ", + " ****************************************** ", + " ************************************** ", + NULL +}; + +static char* icon_param[]= +{ + " ********************************************** ", + " ************************************************** ", + " ** ** ", + " ** ** ", + " ** ******* **** ******* ***** ** ** ** ", + "** ******** ****** ******** ******* ** ** **", + "** ** ** ** ** ** ** ** ** *** *** **", + "** ** ** ** ** ** ** ** ** *** *** **", + "** ** ** ** ** ** ** ** ** **** **** **", + "** ** ** ** ** ** ** ** ** ** **** ** **", + "** ******** ******** ******** ******** ** **** ** **", + "** ******* ******** ******* ******** ** ** ** **", + "** ** ** ** ** *** ** ** ** ** **", + "** ** ** ** ** *** ** ** ** ** **", + " ** ** ** ** ** *** ** ** ** ** ** ", + " ** ** ", + " ** ** ", + " ************************************************** ", + " ********************************************** ", + NULL +}; + +static char* icon_repeat[]= +{ + " ************************* ", + " *************************** ", + " *** ", + " ** ", + " ** ", + " ** ", + " ** ", + "** ", + "** ", + "** ", + "** ", + "** ", + " ** ** ", + " ** **** ", + " ** ****** ", + " ** ******** ", + " *** ********** ", + " ***************************** ", + " *****************************", + NULL +}; + +static char* icon_repeat2[]= +{ + " *", + " **", + "***", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + " *", + NULL +}; + struct icon_info { @@ -111,26 +420,30 @@ struct icon_info int row; }; -static struct icon_info icons [] = +#define ICON_VOLUME_POS 230 +#define ICON_VOLUME_SIZE 20 +#define ICON_VOLUME_X_SIZE 2 + +static struct icon_info icons [] = { {icon_battery, 0, 0}, - {icon_battery_1, 0, 0}, - {icon_battery_2, 0, 0}, - {icon_battery_3, 0, 0}, + {icon_battery_bit, 5, 0}, + {icon_battery_bit, 15, 0}, + {icon_battery_bit, 25, 0}, {icon_usb, 0, 1}, - {icon_play, 0, 1}, - {icon_record, 0, 1}, - {icon_pause, 0, 1}, - {icon_audio, 0, 1}, - {icon_repeat, 0, 1}, - {icon_repeat2, 0, 1}, - {icon_volume, 108, 0}, - {icon_volume_1, 108, 0}, - {icon_volume_2, 108, 0}, - {icon_volume_3, 108, 0}, - {icon_volume_4, 108, 0}, - {icon_volume_5, 108, 0}, - {icon_param, 0, 1} + {icon_play, 55, 0}, + {icon_record, 75, 0}, + {icon_pause, 100, 0}, + {icon_audio, 90, 1}, + {icon_repeat, 170, 0}, + {icon_repeat2, 170+35+4, 0}, + {icon_volume, ICON_VOLUME_POS, 0}, + {icon_volume_1, ICON_VOLUME_POS+ICON_VOLUME_SIZE, 0}, + {icon_volume_2, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(1*ICON_VOLUME_X_SIZE)+1, 0}, + {icon_volume_3, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(2*ICON_VOLUME_X_SIZE)+2, 0}, + {icon_volume_4, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(3*ICON_VOLUME_X_SIZE)+3, 0}, + {icon_volume_5, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(4*ICON_VOLUME_X_SIZE)+4, 0}, + {icon_param, 170, 1} }; void @@ -141,3 +454,5 @@ lcd_icon(int icon, bool enable) } #endif /* HAVE_LCD_CHARCELLS */ + + -- cgit v1.2.3