SDL/src/render
Ethan Lee a28f426acb render: Only update size/scale/viewport when moving to a new display, rather than all window movement.
We really only care about DPI changes here, so this both reduces work and also avoids weird cases where viewport state can be corrupted by trivial window events. This doesn't _completely_ get rid of the issue but this is somewhat intentional, since apps will definitely want to do a full reset when changing displays anyhow (otherwise DPI/adapter changes will screw things up, and that's out of our control as long as both window size and drawable size are exposed at the same time.

Note that OpenGL still captures window events because of weird platform-specific issues like macOS and viewport stretching!

Fixes #5949
2022-08-12 16:13:24 -04:00
..
direct3d Windows GDK Support (#5830) 2022-06-27 10:19:39 -07:00
direct3d11 Windows GDK Support (#5830) 2022-06-27 10:19:39 -07:00
direct3d12 Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
metal Fix C89 declaration for macOS modules. 2022-06-27 15:19:40 -07:00
opengl Added a utility function to calculate the next power of 2 for a value 2022-07-17 08:31:16 -07:00
opengles Added a utility function to calculate the next power of 2 for a value 2022-07-17 08:31:16 -07:00
opengles2 Fixed OpenGL ES Shaders for systems that don't understand precision keywords 2022-08-05 16:17:10 -07:00
ps2 Implement SetTextureScaleMode 2022-08-08 09:34:08 -07:00
psp PSP: SDL_RenderCopyEx rotation and global scaling around the wrong way (see #bug 3070) 2022-02-15 11:34:50 +01:00
software Windows GDK Support (#5830) 2022-06-27 10:19:39 -07:00
vitagxm Vita: create rendertarget color surface with same format as texture. Fixes #5844 2022-06-26 15:41:14 -07:00
SDL_d3dmath.c DirectX 12 Renderer (#5761) 2022-06-06 17:42:30 -07:00
SDL_d3dmath.h Add support for SDL_render_d3d12.c to compile in C++ mode 2022-06-26 15:35:18 -07:00
SDL_render.c render: Only update size/scale/viewport when moving to a new display, rather than all window movement. 2022-08-12 16:13:24 -04:00
SDL_sysrender.h Add dummy driver 2022-08-02 11:40:31 -07:00
SDL_yuv_sw.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_yuv_sw_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00