Revert "render: GetRenderViewportSize shouldn't use scale, just logical presentation."

This reverts commit ef758d05c1.

Turns out the bug in #11076 was that we were dropping texture draws
incorrectly, not that scale shouldn't be applied here. The dropped draw calls
were fixed in bf85320947, and this revert is
making the renderer consistent again.
This commit is contained in:
Ryan C. Gordon 2025-01-08 14:46:49 -05:00
parent fa7a529912
commit f044a3d6ca
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -3000,8 +3000,8 @@ bool SDL_RenderViewportSet(SDL_Renderer *renderer)
static void GetRenderViewportSize(SDL_Renderer *renderer, SDL_FRect *rect) static void GetRenderViewportSize(SDL_Renderer *renderer, SDL_FRect *rect)
{ {
const SDL_RenderViewState *view = renderer->view; const SDL_RenderViewState *view = renderer->view;
const float scale_x = view->logical_scale.x; const float scale_x = view->current_scale.x;
const float scale_y = view->logical_scale.y; const float scale_y = view->current_scale.y;
rect->x = 0.0f; rect->x = 0.0f;
rect->y = 0.0f; rect->y = 0.0f;