From 682526348cb756c7601831742189da0651f088c1 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 13 May 2013 14:07:44 +0200 Subject: [PATCH] REALLY update screen only every 10th line --- mandelbrot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandelbrot.c b/mandelbrot.c index 6c49634..0abe0a5 100644 --- a/mandelbrot.c +++ b/mandelbrot.c @@ -52,7 +52,7 @@ void drawmandelbrot(SDL_Surface *surface) { pixels[i] = color; /* Update the screen every 10 lines. */ - if (y % 10 == 0) { + if (y % 10 == 0 && x == 0) { SDL_Flip(surface); } }