only SDL_Flip is critical, not the check
This commit is contained in:
parent
3771b2578e
commit
bbae44fec7
1 changed files with 3 additions and 3 deletions
|
@ -53,9 +53,9 @@ void drawmandelbrot(SDL_Surface * surface) {
|
||||||
pixels[i] = color;
|
pixels[i] = color;
|
||||||
|
|
||||||
/* Update the screen every 10 lines. */
|
/* Update the screen every 10 lines. */
|
||||||
#pragma omp critical
|
if (y % 10 == 0 && x == 0) {
|
||||||
{
|
#pragma omp critical
|
||||||
if (y % 10 == 0 && x == 0) {
|
{
|
||||||
SDL_Flip(surface);
|
SDL_Flip(surface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue