From 6d187a42551c42cabc60638233b40cee2e2ada2f Mon Sep 17 00:00:00 2001 From: Shin-ichi TOYAMA Date: Sat, 20 Jun 2009 11:51:39 +0000 Subject: [PATCH] Improper position for declaration. --- magic/src/tornado.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/magic/src/tornado.c b/magic/src/tornado.c index ae73f8ee7..34cfdf4d4 100644 --- a/magic/src/tornado.c +++ b/magic/src/tornado.c @@ -300,7 +300,9 @@ static void tornado_drawstalk(magic_api * api, SDL_Surface * canvas, SDL_Surface int left, right; SDL_Rect dest, src; int xx, yy, side; - + int rotation = 0; + int p; + int ii, ww; /* Compute a nice bezier curve for the stalk, based on the base (x,y), leftmost (x), rightmost (x), and top (x,y) */ @@ -338,8 +340,6 @@ static void tornado_drawstalk(magic_api * api, SDL_Surface * canvas, SDL_Surface else top_w = max(32, n_points * n_points / 1000); - int rotation = 0; - int p; /* Draw the curve: */ for (i = 0; i < n_points - 1; i++) @@ -354,7 +354,6 @@ static void tornado_drawstalk(magic_api * api, SDL_Surface * canvas, SDL_Surface } else { - int ii, ww; ii = n_points - i; /* min 10 pixels then ii^2 / 2000 or 4 * ii^2 / canvas->w, don't let the top of funnel be wider than the half of canvas */