diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/viewport.c | 21 | ||||
-rw-r--r-- | apps/gui/viewport.h | 17 |
2 files changed, 0 insertions, 38 deletions
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 8e00ea3a71..0a2630cc9e 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c | |||
@@ -242,27 +242,6 @@ static void viewportmanager_ui_vp_changed(void *param) | |||
242 | screens[i].update(); | 242 | screens[i].update(); |
243 | } | 243 | } |
244 | 244 | ||
245 | void viewport_set_current_vp(struct viewport* vp) | ||
246 | { | ||
247 | if (vp != NULL) | ||
248 | ui_vp_info.vp = vp; | ||
249 | else | ||
250 | ui_vp_info.vp = custom_vp; | ||
251 | |||
252 | /* must be done after the assignment above or event handler get old vps */ | ||
253 | send_event(GUI_EVENT_THEME_CHANGED, NULL); | ||
254 | } | ||
255 | |||
256 | struct viewport* viewport_get_current_vp(void) | ||
257 | { | ||
258 | return ui_vp_info.vp; | ||
259 | } | ||
260 | |||
261 | bool viewport_ui_vp_get_state(enum screen_type screen) | ||
262 | { | ||
263 | return ui_vp_info.active[screen]; | ||
264 | } | ||
265 | |||
266 | /* | 245 | /* |
267 | * (re)parse the UI vp from the settings | 246 | * (re)parse the UI vp from the settings |
268 | * - Returns | 247 | * - Returns |
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index 0e5ad30f35..54424339ca 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h | |||
@@ -89,23 +89,6 @@ void viewport_set_fullscreen(struct viewport *vp, | |||
89 | /* call this when a theme changed */ | 89 | /* call this when a theme changed */ |
90 | void viewportmanager_theme_changed(const int); | 90 | void viewportmanager_theme_changed(const int); |
91 | 91 | ||
92 | /* | ||
93 | * Returns a pointer to the current viewport | ||
94 | * - That could be the UI vp, or a viewport passed to do_menu() or the like | ||
95 | */ | ||
96 | struct viewport* viewport_get_current_vp(void); | ||
97 | |||
98 | /* | ||
99 | * Set the UI vp pointer to a different one - NULL to reset to the UI vp | ||
100 | * | ||
101 | * This is needed since the UI viewport needs is kept in RAM. | ||
102 | */ | ||
103 | void viewport_set_current_vp(struct viewport* vp); | ||
104 | |||
105 | /* | ||
106 | * returns true if the ui viewport is active on the screen | ||
107 | */ | ||
108 | bool viewport_ui_vp_get_state(const enum screen_type screen); | ||
109 | #ifdef HAVE_TOUCHSCREEN | 92 | #ifdef HAVE_TOUCHSCREEN |
110 | bool viewport_point_within_vp(const struct viewport *vp, | 93 | bool viewport_point_within_vp(const struct viewport *vp, |
111 | const int x, const int y); | 94 | const int x, const int y); |