mirror of https://github.com/libsdl-org/SDL.git
render: GetRenderViewportSize shouldn't use scale, just logical presentation.
Fixes #11076.
This commit is contained in:
parent
92520c1d9b
commit
ef758d05c1
|
|
@ -3006,8 +3006,8 @@ bool SDL_RenderViewportSet(SDL_Renderer *renderer)
|
|||
static void GetRenderViewportSize(SDL_Renderer *renderer, SDL_FRect *rect)
|
||||
{
|
||||
const SDL_RenderViewState *view = renderer->view;
|
||||
const float scale_x = view->current_scale.x;
|
||||
const float scale_y = view->current_scale.y;
|
||||
const float scale_x = view->logical_scale.x;
|
||||
const float scale_y = view->logical_scale.y;
|
||||
|
||||
rect->x = 0.0f;
|
||||
rect->y = 0.0f;
|
||||
|
|
|
|||
Loading…
Reference in New Issue