mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-07 07:50:58 +00:00
renderer: always update the output pixel size at startup
Fixes https://github.com/libsdl-org/SDL/issues/10990
This commit is contained in:
parent
2825a682f0
commit
0e45b824e3
3 changed files with 11 additions and 16 deletions
|
@ -250,8 +250,8 @@ struct SDL_Renderer
|
|||
SDL_RenderViewState *view;
|
||||
SDL_RenderViewState main_view;
|
||||
|
||||
// Cache the window size in pixels
|
||||
int window_pixel_w, window_pixel_h;
|
||||
// Cache the output size in pixels
|
||||
int output_pixel_w, output_pixel_h;
|
||||
|
||||
// The window pixel to point coordinate scale
|
||||
SDL_FPoint dpi_scale;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue