mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
Render GPU: Don't call GetWindowSizeInPixels during RenderPreset (#10984)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user