SDL/src/dynapi
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
..
gendynapi.pl wikiheaders.pl: Add support for deprecated functions. 2021-10-23 14:41:23 -04:00
SDL_dynapi.c Add SDL_asprintf and SDL_vasprintf 2021-09-22 11:53:46 -07:00
SDL_dynapi.h configuration updates for dlopen: 2021-08-10 12:07:32 -07:00
SDL_dynapi_overrides.h testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936) 2021-11-09 21:03:42 -08:00
SDL_dynapi_procs.h testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936) 2021-11-09 21:03:42 -08:00