]> git.itanic.dy.fi Git - sdl-planets/commitdiff
draw_planet: Use Better size for the drawing the planet
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 12:36:47 +0000 (14:36 +0200)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 12:36:47 +0000 (14:36 +0200)
Now the outer dimensions of the planet match to the inner dimensions
of the rectangular. We still don't draw circle planets though..

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

index 9dcf8d890c1ec529fb70e21e2d23b3d8ee242c86..278da6777a2967eb86594f9abbf1d25ccac9f078 100644 (file)
--- a/planet.c
+++ b/planet.c
@@ -38,7 +38,7 @@ void init_planet(const SDL_Surface *screen, struct planet *p)
 
 void draw_planet(SDL_Surface *screen, struct planet *p)
 {
-       int size = p->size / 2;
+       int size = p->size ;
        int x, x_start, y, x_end, y_end;
 
        x_start = MAX(p->pos.x - size, 0);