SDL/src
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
..
atomic spinlock: Favor gcc-style atomics over MSVC interfaces. 2021-07-27 13:45:33 -04:00
audio audiocvt: The to-5.1 converters now soften FL and FR channels more. 2021-07-29 17:55:59 -04:00
core winrt: Don't register orientation hint callback in startup code. 2021-08-03 05:07:39 -04:00
cpuinfo Fix pointer provenance in SDL_SIMDRealloc 2021-07-29 14:42:15 -07:00
dynapi Added SDL_GameControllerGetSensorDataRate() to get the sensor update rate for a controller. 2021-07-29 06:43:39 -07:00
events Avoid warping the cursor to the center of the window when not in relative_warp_mode 2021-07-08 09:27:09 -07:00
file
filesystem
haptic
hidapi Implemented the timeout in hid_read_timeout() on Android 2021-07-08 18:44:50 -07:00
joystick Warn if you're building a partially functional RAWINPUT driver without device notifications 2021-08-03 09:25:14 -07:00
libm
loadso
locale
main Updated to version 2.0.16 for release 2021-07-31 13:28:54 -07:00
misc unix: OpenURL: Move unsetenv above vfork 2021-08-01 03:58:49 -07:00
power
render Update the Renderer dpi_scale on SIZE_CHANGED event (fix #4580) 2021-08-03 09:30:43 -07:00
sensor
stdlib Fix casts that should be using uintptr_t 2021-07-29 14:42:15 -07:00
test Added a window flash operation to be explicit about window flash behavior 2021-07-24 13:42:19 -07:00
thread
timer
video winrt: Don't register orientation hint callback in startup code. 2021-08-03 05:07:39 -04:00
SDL.c
SDL_assert.c
SDL_assert_c.h
SDL_dataqueue.c
SDL_dataqueue.h
SDL_error.c
SDL_error_c.h
SDL_hints.c
SDL_hints_c.h
SDL_internal.h
SDL_log.c