From 85be8b8fff33d478b77ec1e74426cf8309754c99 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sun, 15 Oct 2017 11:05:37 -0700 Subject: [PATCH] indent progressbar.c progressbar.h Note - no changes to progressbar.h --- src/progressbar.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/progressbar.c b/src/progressbar.c index ace07f861..336c62fdd 100644 --- a/src/progressbar.c +++ b/src/progressbar.c @@ -45,25 +45,25 @@ void show_progress_bar(SDL_Surface * screen) return; newtime = SDL_GetTicks(); - if (newtime > oldtime + 15) // trying not to eat some serious CPU time! - { - for (x = 0; x < screen->w; x = x + 65) + if (newtime > oldtime + 15) // trying not to eat some serious CPU time! { - src.x = 65 - (prog_bar_ctr % 65); - src.y = 0; - src.w = 65; - src.h = 24; + for (x = 0; x < screen->w; x = x + 65) + { + src.x = 65 - (prog_bar_ctr % 65); + src.y = 0; + src.w = 65; + src.h = 24; - dest.x = x; - dest.y = screen->h - 24; + dest.x = x; + dest.y = screen->h - 24; - SDL_BlitSurface(img_progress, &src, screen, &dest); + SDL_BlitSurface(img_progress, &src, screen, &dest); + } + + prog_bar_ctr++; + + SDL_UpdateRect(screen, 0, screen->h - 24, screen->w, 24); } - - prog_bar_ctr++; - - SDL_UpdateRect(screen, 0, screen->h - 24, screen->w, 24); - } oldtime = newtime;