X-Git-Url: http://git.itanic.dy.fi/?p=mandelbrot;a=blobdiff_plain;f=mandelbrot.c;fp=mandelbrot.c;h=8ce33b9f8cca52b2345ef0b86523b192efb2ca3e;hp=926b6af0a827be7f7b3ed99db094c35bf2d0a27f;hb=00e86273a70f20cb6575b407f0413ca019dbe6de;hpb=de02d2ee032bad5bdfb8d5aa05f13784ae6afe06 diff --git a/mandelbrot.c b/mandelbrot.c index 926b6af..8ce33b9 100644 --- a/mandelbrot.c +++ b/mandelbrot.c @@ -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)); }