SDL/src/render
David Gow 4077f7a2d9 Update the Renderer dpi_scale on SIZE_CHANGED event (fix #4580)
The Renderer logical scaling code scales mouse coordinates, and needs to
take the window DPI into account on HIGHDPI windows. However, the
variable which tracks this, renderer->dpi_scale, is set once when the
renderer is created, and then not updated. In the event that the window
is moved to another screen, or the screen DPI otherwise changes, this
will be outdates, and potentially the coordinates will be all wrong.

So let's update the dpi_scale on the SIZE_CHANGED event: it's at least a
possibility that this will be issued on some OSes when DPI changes, and
it's otherwise already handled by SDL_Renderer's event filter.
2021-08-03 09:30:43 -07:00
..
direct3d Revert "direct3d: Commit dirty viewport state before clearing." 2021-08-03 00:29:33 -07:00
direct3d11 update SDL_COMPOSE_ERROR macro for windows clang-cl 2021-03-04 18:27:47 +03:00
metal mac/iOS: allow Metal in windows created without an explicit backend 2021-02-15 08:43:53 -08:00
opengl opengl: More work on making line drawing match software renderer. 2021-01-11 20:40:11 -05:00
opengles opengl: More work on making line drawing match software renderer. 2021-01-11 20:40:11 -05:00
opengles2 Fix casts that should be using uintptr_t 2021-07-29 14:42:15 -07:00
psp Updated copyright for 2021 2021-01-02 10:25:38 -08:00
software Updated copyright for 2021 2021-01-02 10:25:38 -08:00
vitagxm Remove 'support' for rgb/bgr textures, that was causing issues with them 2021-07-19 10:14:13 -04:00
SDL_d3dmath.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_d3dmath.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_render.c Update the Renderer dpi_scale on SIZE_CHANGED event (fix #4580) 2021-08-03 09:30:43 -07:00
SDL_sysrender.h Remove leftovers 2021-06-11 13:21:07 -04:00
SDL_yuv_sw.c Fix software UpdateNVTexture non fullscreen (bug #5430) 2021-01-05 21:54:03 +01:00
SDL_yuv_sw_c.h Remove old YUV fixme 2021-02-10 10:22:18 -05:00