Explorar el Código

SDL_GetRenderOutputSize -> SDL_GetCurrentRenderOutputSIze

SDL_GetRenderOutput size is old
COMRADECHOnKy hace 3 meses
padre
commit
6bccbd6b1f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/hello.c

+ 1 - 1
docs/hello.c

@@ -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;