We need pixel coordinates for each monitor, but SDL may return logical
coordinates depending on HighDPI mode used by the system.
This commit does:
* Detect which HighDPI mode is in use isHighDPIWindowsMode
* Creates a map of pixel coordinates for each monitor
* recreated whenever a monitor changes)
* Updates the window rdpMonitor data for existing windows
The display settings can not be proplerly queried by SDL without a
window. Create a temporary, invisible window for a requested monitor and
query the required details from that window.
Help SDL identify the display to use for fullscreen even when compositors interfere with window positions.
SDL respects the intent of a window if it is moved to the appropriate display just before it is made fullscreen.
* on high dpi displays set appropriate initial display size (divide
pixel size with scale)
* send display resize on window resize events
* send display resize on any window event (minimize/maximize/expose/...)
fix wait create windows
enable sdl hidpi
map mouse event
fix smart sizing
dynamic resolution in hidpi
reset drawing offset when resize is done
tirgger a full redraw to sdl window after resizing
format & fix warning
sdl hidpi cursor workaround
clean up
format