diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-04 14:08:24 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-23 09:44:23 -0500 |
commit | 9368844ad17a11f28763cc7038d05bd51ddd970e (patch) | |
tree | 9dedcaad73058b3bed6b65b6723ab774e1d8cc74 /apps/gui/skin_engine/skin_display.c | |
parent | f242b0ec6ccfcf97289929e75241c1bcfc2fd94f (diff) | |
download | rockbox-9368844ad17a11f28763cc7038d05bd51ddd970e.tar.gz rockbox-9368844ad17a11f28763cc7038d05bd51ddd970e.zip |
skin engine: Remove progressbar viewport field
Again, we don't need to store the viewport in the progressbar
struct because it's known at render time.
Change-Id: I12514ceaace7c897194b18929364340871ef4635
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 1a012dc1a6..2affd23c87 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -158,10 +158,11 @@ void ab_draw_markers(struct screen * screen, int capacity, | |||
158 | 158 | ||
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb) | 161 | void draw_progressbar(struct gui_wps *gwps, struct skin_viewport* skin_viewport, |
162 | int line, struct progressbar *pb) | ||
162 | { | 163 | { |
163 | struct screen *display = gwps->display; | 164 | struct screen *display = gwps->display; |
164 | struct viewport *vp = SKINOFFSETTOPTR(get_skin_buffer(gwps->data), pb->vp); | 165 | struct viewport *vp = &skin_viewport->vp; |
165 | struct wps_state *state = get_wps_state(); | 166 | struct wps_state *state = get_wps_state(); |
166 | struct mp3entry *id3 = state->id3; | 167 | struct mp3entry *id3 = state->id3; |
167 | int x = pb->x, y = pb->y, width = pb->width, height = pb->height; | 168 | int x = pb->x, y = pb->y, width = pb->width, height = pb->height; |