mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-26 10:06:42 +08:00
Added SDL_SetWindowSurfaceVSync() and SDL_GetWindowSurfaceVSync()
Fixes https://github.com/libsdl-org/SDL/issues/9347
This commit is contained in:
@@ -2142,6 +2142,8 @@ extern SDL_DECLSPEC int SDLCALL SDL_AddVulkanRenderSemaphores(SDL_Renderer *rend
|
||||
/**
|
||||
* Toggle VSync of the given renderer.
|
||||
*
|
||||
* When a renderer is created, vsync defaults to SDL_RENDERER_VSYNC_DISABLED.
|
||||
*
|
||||
* \param renderer The renderer to toggle
|
||||
* \param vsync the vertical refresh sync interval, 1 to synchronize present
|
||||
* with every vertical refresh, 2 to synchronize present with
|
||||
@@ -2168,7 +2170,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_SetRenderVSync(SDL_Renderer *renderer, int v
|
||||
*
|
||||
* \param renderer The renderer to toggle
|
||||
* \param vsync an int filled with the current vertical refresh sync interval.
|
||||
* See SDL_SetRenderVSync for the meaning of the value.
|
||||
* See SDL_SetRenderVSync() for the meaning of the value.
|
||||
* \returns 0 on success or a negative error code on failure; call
|
||||
* SDL_GetError() for more information.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user