indent progressbar.c progressbar.h
Note - no changes to progressbar.h
This commit is contained in:
parent
bc78db547f
commit
85be8b8fff
1 changed files with 15 additions and 15 deletions
|
|
@ -45,25 +45,25 @@ void show_progress_bar(SDL_Surface * screen)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
newtime = SDL_GetTicks();
|
newtime = SDL_GetTicks();
|
||||||
if (newtime > oldtime + 15) // trying not to eat some serious CPU time!
|
if (newtime > oldtime + 15) // trying not to eat some serious CPU time!
|
||||||
{
|
|
||||||
for (x = 0; x < screen->w; x = x + 65)
|
|
||||||
{
|
{
|
||||||
src.x = 65 - (prog_bar_ctr % 65);
|
for (x = 0; x < screen->w; x = x + 65)
|
||||||
src.y = 0;
|
{
|
||||||
src.w = 65;
|
src.x = 65 - (prog_bar_ctr % 65);
|
||||||
src.h = 24;
|
src.y = 0;
|
||||||
|
src.w = 65;
|
||||||
|
src.h = 24;
|
||||||
|
|
||||||
dest.x = x;
|
dest.x = x;
|
||||||
dest.y = screen->h - 24;
|
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;
|
oldtime = newtime;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue