Oops, reverted single/double buffer update

This commit is contained in:
Patrice Mandin
2006-06-14 19:03:01 +00:00
parent 99bce8f003
commit a5571ed2b1

View File

@@ -104,12 +104,12 @@ int main(int argc, char *argv[])
}
}
if (screen->flags & SDL_DOUBLEBUF) {
SDL_Flip(screen);
} else {
if (first_time) {
SDL_UpdateRects(screen, 1, &update_area);
first_time = SDL_FALSE;
}
} else {
SDL_Flip(screen);
}
SDL_Delay(1);
}