diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-12-17 02:37:21 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-12-17 02:37:21 +0000 |
| commit | f5ec3e49e0687eda7b9059942c23321f9878becf (patch) | |
| tree | 7961798bfa368d0e0d191317b24ff0918eb981ca /apps/debug_menu.c | |
| parent | f6039466fb275f55be16113bbbf46872f90862c8 (diff) | |
| download | rockbox-f5ec3e49e0687eda7b9059942c23321f9878becf.zip rockbox-f5ec3e49e0687eda7b9059942c23321f9878becf.tar.gz rockbox-f5ec3e49e0687eda7b9059942c23321f9878becf.tar.bz2 rockbox-f5ec3e49e0687eda7b9059942c23321f9878becf.tar.xz | |
remove the duplicated gui_list struct and only duplicate the members which are actually different on each screen. should translate to a smaller bin and easier code (users shouldnt notice any difference)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15947 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index a8eb786..8f24ac9 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1449,11 +1449,11 @@ static char* tsc2100_debug_getname(int selected_item, void * data, char *buffer) } static int tsc2100debug_action_callback(int action, struct gui_synclist *lists) { - int *page = (int*)lists->gui_list[SCREEN_MAIN].data; + int *page = (int*)lists->data; if (action == ACTION_STD_OK) { *page = (*page+1)%3; - snprintf(lists->gui_list[SCREEN_MAIN].title, 32, + snprintf(lists->title, 32, "tsc2100 registers - Page %d", *page); return ACTION_REDRAW; } @@ -1667,10 +1667,10 @@ static bool view_battery(void) static int disk_callback(int btn, struct gui_synclist *lists) { tCardInfo *card; - int *cardnum = (int*)lists->gui_list[SCREEN_MAIN].data; + int *cardnum = (int*)lists->data; unsigned char card_name[7]; unsigned char pbuf[32]; - char *title = lists->gui_list[SCREEN_MAIN].title; + char *title = lists->title; static const unsigned char i_vmin[] = { 0, 1, 5, 10, 25, 35, 60, 100 }; static const unsigned char i_vmax[] = { 1, 5, 10, 25, 35, 45, 80, 200 }; static const unsigned char *kbit_units[] = { "kBit/s", "MBit/s", "GBit/s" }; |