SDL/include
Eric Wasylishen 0d98793693
testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936)
* SDLTest_CommonDrawWindowInfo: log SDL_RenderGetScale, SDL_RenderGetLogicalSize

* testwm2: fix video modes menu hit detection in High DPI cases

- also when logical size is specified, e.g.
  `--logical 640x480 --resizable --allow-highdpi`

* add function to determine logical coordinates of renderer point when given window point

* change since to the targeted milestone

* fix typo

* rename for consistency

* Change logical coordinate type to float, since we can render with floating point precision.

* add function to convert logical to window coordinates

* testwm2: use new SDL_RenderWindowToLogical

* SDL_render.c: alternate SDL_RenderWindowToLogical/SDL_RenderLogicalToWindow

Co-authored-by: John Blat <johnblat64@protonmail.com>
Co-authored-by: John Blat <47202511+johnblat64@users.noreply.github.com>
2021-11-09 21:03:42 -08:00
..
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-08-14 17:04:46 +01:00
2021-01-02 10:25:38 -08:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-09-28 17:03:06 +00:00
2021-11-07 14:10:04 -08:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-01-02 10:25:38 -08:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-01-02 10:25:38 -08:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-10-27 01:36:05 +00:00
2021-10-27 01:36:05 +00:00
2021-01-02 10:25:38 -08:00
2021-10-27 01:36:05 +00:00
2021-11-08 21:34:48 -08:00
2021-10-27 01:36:05 +00:00