Oops, reverted single/double buffer update
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401845
This commit is contained in:
parent
0475249450
commit
165561408f
1 changed files with 2 additions and 2 deletions
|
@ -104,12 +104,12 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (screen->flags & SDL_DOUBLEBUF) {
|
if (screen->flags & SDL_DOUBLEBUF) {
|
||||||
|
SDL_Flip(screen);
|
||||||
|
} else {
|
||||||
if (first_time) {
|
if (first_time) {
|
||||||
SDL_UpdateRects(screen, 1, &update_area);
|
SDL_UpdateRects(screen, 1, &update_area);
|
||||||
first_time = SDL_FALSE;
|
first_time = SDL_FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
SDL_Flip(screen);
|
|
||||||
}
|
}
|
||||||
SDL_Delay(1);
|
SDL_Delay(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue