diff options
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h index f6e4a5d615..26f58761b6 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h | |||
@@ -91,6 +91,10 @@ struct gui_list | |||
91 | int selected_size; | 91 | int selected_size; |
92 | /* The data that will be passed to the callback function YOU implement */ | 92 | /* The data that will be passed to the callback function YOU implement */ |
93 | void * data; | 93 | void * data; |
94 | /* These are used to calculate how much of the screen content we need | ||
95 | to redraw. */ | ||
96 | int last_displayed_selected_item; | ||
97 | int last_displayed_start_item; | ||
94 | /* The optional title, set to NULL for none */ | 98 | /* The optional title, set to NULL for none */ |
95 | char *title; | 99 | char *title; |
96 | /* Cache the width of the title string in pixels/characters */ | 100 | /* Cache the width of the title string in pixels/characters */ |
@@ -162,6 +166,7 @@ extern void gui_list_screen_scroll_out_of_view(bool enable); | |||
162 | struct gui_synclist | 166 | struct gui_synclist |
163 | { | 167 | { |
164 | struct gui_list gui_list[NB_SCREENS]; | 168 | struct gui_list gui_list[NB_SCREENS]; |
169 | struct gui_list *last_displayed[NB_SCREENS]; | ||
165 | }; | 170 | }; |
166 | 171 | ||
167 | extern void gui_synclist_init( | 172 | extern void gui_synclist_init( |