Oops, reverted single/double buffer update

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401845
This commit is contained in:
Patrice Mandin 2006-06-14 19:03:01 +00:00
parent 0475249450
commit 165561408f

View file

@ -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);
} }