diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:38:22 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:38:22 -0400 |
commit | 40e98a2e4915464b9306ab7b0f6feb173de095c5 (patch) | |
tree | 4e987640ae4ad201f029c4e26e51ebc61a4549b1 /apps/gui/skin_engine/skin_display.c | |
parent | 3237ae4a4ff9296a377ff9194a11038da161208f (diff) | |
download | rockbox-40e98a2e4915464b9306ab7b0f6feb173de095c5.tar.gz rockbox-40e98a2e4915464b9306ab7b0f6feb173de095c5.zip |
Whitespace cleanup on fb_viewport Rewrite
Change-Id: I24aac41c8abecf7b78a44d7f59e842b791be4563
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index bd3a2b40aa..c35b09eaac 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -80,14 +80,14 @@ void skin_update(enum skinnable_screens skin, enum screen_type screen, | |||
80 | unsigned int update_type) | 80 | unsigned int update_type) |
81 | { | 81 | { |
82 | struct gui_wps *gwps = skin_get_gwps(skin, screen); | 82 | struct gui_wps *gwps = skin_get_gwps(skin, screen); |
83 | /* This maybe shouldnt be here, | 83 | /* This maybe shouldnt be here, |
84 | * This is also safe for skined screen which dont use the id3 */ | 84 | * This is also safe for skined screen which dont use the id3 */ |
85 | struct mp3entry *id3 = skin_get_global_state()->id3; | 85 | struct mp3entry *id3 = skin_get_global_state()->id3; |
86 | bool cuesheet_update = (id3 != NULL ? cuesheet_subtrack_changed(id3) : false); | 86 | bool cuesheet_update = (id3 != NULL ? cuesheet_subtrack_changed(id3) : false); |
87 | if (cuesheet_update) | 87 | if (cuesheet_update) |
88 | skin_request_full_update(skin); | 88 | skin_request_full_update(skin); |
89 | 89 | ||
90 | skin_render(gwps, skin_do_full_update(skin, screen) ? | 90 | skin_render(gwps, skin_do_full_update(skin, screen) ? |
91 | SKIN_REFRESH_ALL : update_type); | 91 | SKIN_REFRESH_ALL : update_type); |
92 | } | 92 | } |
93 | 93 | ||
@@ -96,7 +96,7 @@ void skin_update(enum skinnable_screens skin, enum screen_type screen, | |||
96 | #define DIRECTION_RIGHT 1 | 96 | #define DIRECTION_RIGHT 1 |
97 | #define DIRECTION_LEFT -1 | 97 | #define DIRECTION_LEFT -1 |
98 | 98 | ||
99 | static int ab_calc_mark_x_pos(int mark, int capacity, | 99 | static int ab_calc_mark_x_pos(int mark, int capacity, |
100 | int offset, int size) | 100 | int offset, int size) |
101 | { | 101 | { |
102 | return offset + ( (size * mark) / capacity ); | 102 | return offset + ( (size * mark) / capacity ); |
@@ -124,7 +124,7 @@ static void ab_draw_arrow_mark(struct screen * screen, | |||
124 | } | 124 | } |
125 | } | 125 | } |
126 | 126 | ||
127 | void ab_draw_markers(struct screen * screen, int capacity, | 127 | void ab_draw_markers(struct screen * screen, int capacity, |
128 | int x, int y, int w, int h) | 128 | int x, int y, int w, int h) |
129 | { | 129 | { |
130 | bool a_set, b_set; | 130 | bool a_set, b_set; |
@@ -245,13 +245,13 @@ void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb) | |||
245 | length = 1; | 245 | length = 1; |
246 | end = 0; | 246 | end = 0; |
247 | } | 247 | } |
248 | 248 | ||
249 | if (!pb->horizontal) | 249 | if (!pb->horizontal) |
250 | { | 250 | { |
251 | /* we want to fill upwards which is technically inverted. */ | 251 | /* we want to fill upwards which is technically inverted. */ |
252 | flags = INVERTFILL; | 252 | flags = INVERTFILL; |
253 | } | 253 | } |
254 | 254 | ||
255 | if (pb->invert_fill_direction) | 255 | if (pb->invert_fill_direction) |
256 | { | 256 | { |
257 | flags ^= INVERTFILL; | 257 | flags ^= INVERTFILL; |
@@ -421,7 +421,7 @@ void wps_display_images(struct gui_wps *gwps, struct viewport* vp) | |||
421 | /* Evaluate the conditional that is at *token_index and return whether a skip | 421 | /* Evaluate the conditional that is at *token_index and return whether a skip |
422 | has ocurred. *token_index is updated with the new position. | 422 | has ocurred. *token_index is updated with the new position. |
423 | */ | 423 | */ |
424 | int evaluate_conditional(struct gui_wps *gwps, int offset, | 424 | int evaluate_conditional(struct gui_wps *gwps, int offset, |
425 | struct conditional *conditional, int num_options) | 425 | struct conditional *conditional, int num_options) |
426 | { | 426 | { |
427 | if (!gwps) | 427 | if (!gwps) |
@@ -641,7 +641,7 @@ bool skin_has_sbs(enum screen_type screen, struct wps_data *data) | |||
641 | } | 641 | } |
642 | 642 | ||
643 | /* do the button loop as often as required for the peak meters to update | 643 | /* do the button loop as often as required for the peak meters to update |
644 | * with a good refresh rate. | 644 | * with a good refresh rate. |
645 | */ | 645 | */ |
646 | int skin_wait_for_action(enum skinnable_screens skin, int context, int timeout) | 646 | int skin_wait_for_action(enum skinnable_screens skin, int context, int timeout) |
647 | { | 647 | { |