diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-12-07 21:48:33 +0100 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2021-12-08 22:29:35 -0500 |
commit | 43d811073a59dcb094d0da14b7e73ba2818b5340 (patch) | |
tree | 1ecf9296f2315959a28e96b7058be4e7efaed12e /apps/plugins/credits.c | |
parent | 7e0e4fe888eba8133a753bb2abc748b0c404e9f5 (diff) | |
download | rockbox-43d811073a59dcb094d0da14b7e73ba2818b5340.tar.gz rockbox-43d811073a59dcb094d0da14b7e73ba2818b5340.zip |
Credits plugin: whitespace fixes
Change-Id: I21689357ad7e0ce86cc31ecfa7a94f1f8b620120
Diffstat (limited to 'apps/plugins/credits.c')
-rw-r--r-- | apps/plugins/credits.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c index 3374a33415..8c03d0194f 100644 --- a/apps/plugins/credits.c +++ b/apps/plugins/credits.c | |||
@@ -56,13 +56,13 @@ static int update_rowpos(int action, int cur_pos, int rows_per_screen, int tot_r | |||
56 | case ACTION_STD_NEXTREPEAT: | 56 | case ACTION_STD_NEXTREPEAT: |
57 | cur_pos++; | 57 | cur_pos++; |
58 | break; | 58 | break; |
59 | } | 59 | } |
60 | 60 | ||
61 | if(cur_pos > tot_rows - rows_per_screen) | 61 | if(cur_pos > tot_rows - rows_per_screen) |
62 | cur_pos = 0; | 62 | cur_pos = 0; |
63 | if(cur_pos < 0) | 63 | if(cur_pos < 0) |
64 | cur_pos = tot_rows - rows_per_screen; | 64 | cur_pos = tot_rows - rows_per_screen; |
65 | 65 | ||
66 | return cur_pos; | 66 | return cur_pos; |
67 | } | 67 | } |
68 | 68 | ||
@@ -150,7 +150,7 @@ static void roll_credits(void) | |||
150 | if(stop_autoscroll(action)) | 150 | if(stop_autoscroll(action)) |
151 | break; | 151 | break; |
152 | } | 152 | } |
153 | 153 | ||
154 | /* process user actions (if any) */ | 154 | /* process user actions (if any) */ |
155 | if(ACTION_STD_CANCEL == action) | 155 | if(ACTION_STD_CANCEL == action) |
156 | return; | 156 | return; |
@@ -193,7 +193,7 @@ static void roll_credits(void) | |||
193 | rb->lcd_set_drawmode(DRMODE_SOLID); | 193 | rb->lcd_set_drawmode(DRMODE_SOLID); |
194 | rb->lcd_putsxy(namepos, font_h*(i+1), name); | 194 | rb->lcd_putsxy(namepos, font_h*(i+1), name); |
195 | rb->lcd_update_rect(0, font_h*(i+1), LCD_WIDTH, font_h); | 195 | rb->lcd_update_rect(0, font_h*(i+1), LCD_WIDTH, font_h); |
196 | 196 | ||
197 | /* exit on keypress, react to scrolling */ | 197 | /* exit on keypress, react to scrolling */ |
198 | action = rb->get_action(CONTEXT_LIST, HZ/ANIM_SPEED); | 198 | action = rb->get_action(CONTEXT_LIST, HZ/ANIM_SPEED); |
199 | if(stop_autoscroll(action)) | 199 | if(stop_autoscroll(action)) |
@@ -214,7 +214,7 @@ static void roll_credits(void) | |||
214 | rb->lcd_putsxy(CREDITS_TARGETPOS, 0, elapsednames); | 214 | rb->lcd_putsxy(CREDITS_TARGETPOS, 0, elapsednames); |
215 | if (j+i < NUM_VISIBLE_LINES) /* takes care of trail on loop */ | 215 | if (j+i < NUM_VISIBLE_LINES) /* takes care of trail on loop */ |
216 | rb->lcd_update_rect(0, 0, LCD_WIDTH, font_h); | 216 | rb->lcd_update_rect(0, 0, LCD_WIDTH, font_h); |
217 | 217 | ||
218 | for(namepos = 0-name_w; namepos <= name_targetpos; | 218 | for(namepos = 0-name_w; namepos <= name_targetpos; |
219 | namepos += (name_targetpos - namepos + 14) / 7) | 219 | namepos += (name_targetpos - namepos + 14) / 7) |
220 | { | 220 | { |
@@ -224,7 +224,7 @@ static void roll_credits(void) | |||
224 | rb->lcd_putsxy(namepos, font_h*(i+1), name); | 224 | rb->lcd_putsxy(namepos, font_h*(i+1), name); |
225 | rb->lcd_update_rect(0, font_h*(i+1), LCD_WIDTH, font_h); | 225 | rb->lcd_update_rect(0, font_h*(i+1), LCD_WIDTH, font_h); |
226 | rb->lcd_update_rect(CREDITS_TARGETPOS, 0, credits_w,font_h); | 226 | rb->lcd_update_rect(CREDITS_TARGETPOS, 0, credits_w,font_h); |
227 | 227 | ||
228 | /* stop on keypress */ | 228 | /* stop on keypress */ |
229 | action = rb->get_action(CONTEXT_LIST, HZ/ANIM_SPEED); | 229 | action = rb->get_action(CONTEXT_LIST, HZ/ANIM_SPEED); |
230 | if(stop_autoscroll(action)) | 230 | if(stop_autoscroll(action)) |
@@ -236,14 +236,14 @@ static void roll_credits(void) | |||
236 | } /* for(i=0; i<NUM_VISIBLE_LINES; i++) */ | 236 | } /* for(i=0; i<NUM_VISIBLE_LINES; i++) */ |
237 | if(stop_autoscroll(action)) | 237 | if(stop_autoscroll(action)) |
238 | break; | 238 | break; |
239 | 239 | ||
240 | action = rb->get_action(CONTEXT_LIST, HZ*PAUSE_TIME); | 240 | action = rb->get_action(CONTEXT_LIST, HZ*PAUSE_TIME); |
241 | if(stop_autoscroll(action)) | 241 | if(stop_autoscroll(action)) |
242 | break; | 242 | break; |
243 | 243 | ||
244 | j+=i; /* no user intervention, draw the next screen-full */ | 244 | j+=i; /* no user intervention, draw the next screen-full */ |
245 | } /* while(j < numnames) */ | 245 | } /* while(j < numnames) */ |
246 | 246 | ||
247 | /* handle the keypress that we intercepted during autoscroll */ | 247 | /* handle the keypress that we intercepted during autoscroll */ |
248 | if(ACTION_STD_CANCEL == action) | 248 | if(ACTION_STD_CANCEL == action) |
249 | return; | 249 | return; |
@@ -263,14 +263,14 @@ static void roll_credits(void) | |||
263 | j+NUM_VISIBLE_LINES, numnames); | 263 | j+NUM_VISIBLE_LINES, numnames); |
264 | rb->lcd_getstringsize(elapsednames, &credits_w, NULL); | 264 | rb->lcd_getstringsize(elapsednames, &credits_w, NULL); |
265 | rb->lcd_putsxy(CREDITS_TARGETPOS, 0, elapsednames); | 265 | rb->lcd_putsxy(CREDITS_TARGETPOS, 0, elapsednames); |
266 | 266 | ||
267 | for(i=0; i<NUM_VISIBLE_LINES; i++) | 267 | for(i=0; i<NUM_VISIBLE_LINES; i++) |
268 | rb->lcd_putsxyf(0, font_h*(i+1), "%s", credits[j+i]); | 268 | rb->lcd_putsxyf(0, font_h*(i+1), "%s", credits[j+i]); |
269 | 269 | ||
270 | rb->lcd_update(); | 270 | rb->lcd_update(); |
271 | 271 | ||
272 | rb->yield(); | 272 | rb->yield(); |
273 | 273 | ||
274 | /* wait for user action */ | 274 | /* wait for user action */ |
275 | action = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); | 275 | action = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK); |
276 | if(ACTION_STD_CANCEL == action) | 276 | if(ACTION_STD_CANCEL == action) |
@@ -279,7 +279,7 @@ static void roll_credits(void) | |||
279 | } | 279 | } |
280 | return; /* exit without animation */ | 280 | return; /* exit without animation */ |
281 | } | 281 | } |
282 | 282 | ||
283 | action = rb->get_action(CONTEXT_LIST, HZ*3); | 283 | action = rb->get_action(CONTEXT_LIST, HZ*3); |
284 | if(ACTION_STD_CANCEL == action) | 284 | if(ACTION_STD_CANCEL == action) |
285 | return; | 285 | return; |