comparison test/testcursor.c @ 1859:2fce7697adca

Oops, reverted single/double buffer update
author Patrice Mandin <patmandin@gmail.com>
date Wed, 14 Jun 2006 19:03:01 +0000
parents d3ac464fb3c1
children fe99535ac064
comparison
equal deleted inserted replaced
1858:d3ac464fb3c1 1859:2fce7697adca
102 quit = SDL_TRUE; 102 quit = SDL_TRUE;
103 break; 103 break;
104 } 104 }
105 } 105 }
106 if (screen->flags & SDL_DOUBLEBUF) { 106 if (screen->flags & SDL_DOUBLEBUF) {
107 SDL_Flip(screen);
108 } else {
107 if (first_time) { 109 if (first_time) {
108 SDL_UpdateRects(screen, 1, &update_area); 110 SDL_UpdateRects(screen, 1, &update_area);
109 first_time = SDL_FALSE; 111 first_time = SDL_FALSE;
110 } 112 }
111 } else {
112 SDL_Flip(screen);
113 } 113 }
114 SDL_Delay(1); 114 SDL_Delay(1);
115 } 115 }
116 116
117 SDL_FreeCursor(cursor); 117 SDL_FreeCursor(cursor);