mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 02:08:27 +00:00
Render GPU: Don't call GetWindowSizeInPixels during RenderPreset (#10984)
This commit is contained in:
parent
a923771978
commit
66f6b40c92
3 changed files with 11 additions and 7 deletions
|
@ -2564,6 +2564,10 @@ static void UpdateLogicalPresentation(SDL_Renderer *renderer)
|
|||
|
||||
int iwidth, iheight;
|
||||
SDL_GetRenderOutputSize(renderer, &iwidth, &iheight);
|
||||
|
||||
renderer->window_pixel_w = iwidth;
|
||||
renderer->window_pixel_h = iheight;
|
||||
|
||||
const float output_w = (float)iwidth;
|
||||
const float output_h = (float)iheight;
|
||||
const float logical_w = renderer->logical_w;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue