]> git.itanic.dy.fi Git - sdl-planets/commitdiff
main.c: Print some white space at the end of the status line
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 11:58:24 +0000 (13:58 +0200)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 11:59:26 +0000 (13:59 +0200)
Without this, the status line looks bit odd due to the remaining
characters from the last line, at least when the line shrinks.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
main.c

diff --git a/main.c b/main.c
index 336a2c2a5e654438a1e519271c99d467fa7563ff..7ff05fe7ffa0eb9704bb5a5c84dace8303f03762 100644 (file)
--- a/main.c
+++ b/main.c
@@ -98,7 +98,7 @@ static void loop(SDL_Surface *screen)
                        last_framecount = framecount;
                        last_fps_time = ticks;
                }
-               printf("\rFrames/s: %.2f, Frame: %d, planets: %d",
+               printf("  \rFrames/s: %.2f, Frame: %d, planets: %d",
                       last_fps, framecount++, planets);
        }
 }