REALLY update screen only every 10th line
This commit is contained in:
parent
13b3971d3e
commit
682526348c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue