only SDL_Flip is critical, not the check

master
neingeist 10 years ago
parent 3771b2578e
commit bbae44fec7

@ -53,9 +53,9 @@ void drawmandelbrot(SDL_Surface * surface) {
pixels[i] = color;
/* Update the screen every 10 lines. */
#pragma omp critical
{
if (y % 10 == 0 && x == 0) {
if (y % 10 == 0 && x == 0) {
#pragma omp critical
{
SDL_Flip(surface);
}
}

Loading…
Cancel
Save