mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 09:55:42 +00:00
SDL_GetRenderOutputSize -> SDL_GetCurrentRenderOutputSIze
SDL_GetRenderOutput size is old
This commit is contained in:
parent
55908f14f8
commit
6bccbd6b1f
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
const float scale = 4.0f;
|
||||
|
||||
/* Center the message and scale it up */
|
||||
SDL_GetRenderOutputSize(renderer, &w, &h);
|
||||
SDL_GetCurrentRenderOutputSize(renderer, &w, &h);
|
||||
SDL_SetRenderScale(renderer, scale, scale);
|
||||
x = ((w / scale) - SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE * SDL_strlen(message)) / 2;
|
||||
y = ((h / scale) - SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE) / 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue