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 Add support for Vita file API in SDL_rwops 2021-03-08 09:07:12 -08:00
filesystem Windows: Fix SDL_GetBasePath() truncating paths 2021-06-12 23:07:46 -04:00
haptic Rename haptic methods to avoid confusion with joystick: 2021-06-10 16:41:09 -07:00
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 Updated copyright for 2021 2021-01-02 10:25:38 -08:00
loadso Updated copyright for 2021 2021-01-02 10:25:38 -08:00
locale consistently use TEXT() macro with LoadLibrary() and GetModuleHandle() 2021-01-04 01:23:50 +03:00
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 Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
render Update the Renderer dpi_scale on SIZE_CHANGED event (fix #4580) 2021-08-03 09:30:43 -07:00
sensor Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
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 Migrate to lightweight mutexes 2021-04-24 14:13:09 -07:00
timer Formatting 2021-03-08 09:07:12 -08:00
video winrt: Don't register orientation hint callback in startup code. 2021-08-03 05:07:39 -04:00
SDL.c linux: (de)initialize d-bus at init and quit. 2021-04-02 14:35:11 -04:00
SDL_assert.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_assert_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_internal.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_log.c Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00