Removed unused struct member from gui_synclist, and reordered struct members of gui_list for optimal packing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13139 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6be615615d
commit
c05ee02312
1 changed files with 17 additions and 17 deletions
|
@ -69,36 +69,37 @@ typedef char * list_get_name(int selected_item,
|
||||||
|
|
||||||
struct gui_list
|
struct gui_list
|
||||||
{
|
{
|
||||||
int nb_items;
|
|
||||||
int selected_item;
|
|
||||||
bool cursor_flash_state;
|
|
||||||
int start_item; /* the item that is displayed at the top of the screen */
|
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
|
||||||
int offset_position; /* the list's screen scroll placement in pixels */
|
|
||||||
#endif
|
|
||||||
list_get_icon *callback_get_item_icon;
|
|
||||||
list_get_name *callback_get_item_name;
|
|
||||||
|
|
||||||
struct screen * display;
|
|
||||||
/* defines wether the list should stop when reaching the top/bottom
|
/* defines wether the list should stop when reaching the top/bottom
|
||||||
* or should continue (by going to bottom/top) */
|
* or should continue (by going to bottom/top) */
|
||||||
bool limit_scroll;
|
bool limit_scroll;
|
||||||
/* wether the text of the whole items of the list have to be
|
/* wether the text of the whole items of the list have to be
|
||||||
* scrolled or only for the selected item */
|
* scrolled or only for the selected item */
|
||||||
bool scroll_all;
|
bool scroll_all;
|
||||||
|
bool cursor_flash_state;
|
||||||
|
|
||||||
|
int nb_items;
|
||||||
|
int selected_item;
|
||||||
|
int start_item; /* the item that is displayed at the top of the screen */
|
||||||
/* the number of lines that are selected at the same time */
|
/* the number of lines that are selected at the same time */
|
||||||
int selected_size;
|
int selected_size;
|
||||||
/* The data that will be passed to the callback function YOU implement */
|
|
||||||
void * data;
|
|
||||||
/* These are used to calculate how much of the screen content we need
|
/* These are used to calculate how much of the screen content we need
|
||||||
to redraw. */
|
to redraw. */
|
||||||
int last_displayed_selected_item;
|
int last_displayed_selected_item;
|
||||||
int last_displayed_start_item;
|
int last_displayed_start_item;
|
||||||
/* The optional title, set to NULL for none */
|
#ifdef HAVE_LCD_BITMAP
|
||||||
char *title;
|
int offset_position; /* the list's screen scroll placement in pixels */
|
||||||
|
#endif
|
||||||
/* Cache the width of the title string in pixels/characters */
|
/* Cache the width of the title string in pixels/characters */
|
||||||
int title_width;
|
int title_width;
|
||||||
|
|
||||||
|
list_get_icon *callback_get_item_icon;
|
||||||
|
list_get_name *callback_get_item_name;
|
||||||
|
|
||||||
|
struct screen * display;
|
||||||
|
/* The data that will be passed to the callback function YOU implement */
|
||||||
|
void * data;
|
||||||
|
/* The optional title, set to NULL for none */
|
||||||
|
char * title;
|
||||||
/* Optional title icon */
|
/* Optional title icon */
|
||||||
ICON title_icon;
|
ICON title_icon;
|
||||||
};
|
};
|
||||||
|
@ -166,7 +167,6 @@ extern void gui_list_screen_scroll_out_of_view(bool enable);
|
||||||
struct gui_synclist
|
struct gui_synclist
|
||||||
{
|
{
|
||||||
struct gui_list gui_list[NB_SCREENS];
|
struct gui_list gui_list[NB_SCREENS];
|
||||||
struct gui_list *last_displayed[NB_SCREENS];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void gui_synclist_init(
|
extern void gui_synclist_init(
|
||||||
|
|
Loading…
Reference in a new issue