]> git.itanic.dy.fi Git - mandelbrot/blobdiff - mandelbrot.c
Move debug print into a better place
[mandelbrot] / mandelbrot.c
index 926b6af0a827be7f7b3ed99db094c35bf2d0a27f..8ce33b9f8cca52b2345ef0b86523b192efb2ca3e 100644 (file)
@@ -49,8 +49,6 @@ int draw_mandelbrot(struct SDL_Surface *screen, double x1, double x2,
        double x0, y0, xlen, ylen, xstep, ystep;
        int iteration, xs, ys;
 
-       printf("Drawing area (%f, %f)(%f, %f)\n", x1, y1, x2, y2);
-
        xlen = x2 - x1;
        ylen = y2 - y1;
        xstep = xlen / (double)screen->w;
@@ -167,6 +165,8 @@ static void loop(struct context *ctx)
                                ctx->origo_x + aspect_ratio / ctx->zoom,
                                ctx->origo_y - 1 / ctx->zoom,
                                ctx->origo_y + 1 / ctx->zoom);
+               printf("Drawing area (%f, %f)(%f, %f), zoom %d\n",
+                       x1, y1, x2, y2, ctx->zoom );
        } while (!read_events(ctx));
 }