mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	examples/renderer/01-clear: No longer needs vsync.
This now chooses the next color based on time, so it won't go wild if the framerate is unbounded.
This commit is contained in:
		| @@ -26,7 +26,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) | |||||||
|         SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Couldn't create window/renderer!", SDL_GetError(), NULL); |         SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Couldn't create window/renderer!", SDL_GetError(), NULL); | ||||||
|         return SDL_APP_FAILURE; |         return SDL_APP_FAILURE; | ||||||
|     } |     } | ||||||
|     SDL_SetRenderVSync(renderer, 1);  /* try to show frames at the monitor refresh rate. */ |  | ||||||
|     return SDL_APP_CONTINUE;  /* carry on with the program! */ |     return SDL_APP_CONTINUE;  /* carry on with the program! */ | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ryan C. Gordon
					Ryan C. Gordon