Render GPU: Don't call GetWindowSizeInPixels during RenderPreset (#10984)

This commit is contained in:
Evan Hemsley
2024-09-28 18:01:16 -07:00
committed by GitHub
parent a923771978
commit 66f6b40c92
3 changed files with 11 additions and 7 deletions

View File

@@ -250,6 +250,9 @@ struct SDL_Renderer
SDL_RenderViewState *view;
SDL_RenderViewState main_view;
// Cache the window size in pixels
int window_pixel_w, window_pixel_h;
// The window pixel to point coordinate scale
SDL_FPoint dpi_scale;