SDL/src/video/windows
Sam Lantinga be0cf257fe Only force the resize event in the DPI changed case
OpenGL windows don't actually get the WM_WINDOWPOSCHANGED event in the SetWindowPos() call in WIN_SetWindowFullscreen(), so setting the window size to zero never gets reset and we're stuck with a zero sized window.

Instead, just force the resize event in WM_DPICHANGED handling, where we know we need it. If we end up needing to force it in WIN_SetWindowFullscreen(), just set a flag in the window data and respond to that in WM_WINDOWPOSCHANGED, but that's a fairly risky behavior change as suddenly all applications would start getting SDL_WINDOWEVENT_SIZE_CHANGED when going fullscreen, and they may respond to that in expensive and potentially disruptive ways.

For later we'll probably create a DPI changed event and respond to that in the renderer instead of this window size changed hack.

This fixes https://github.com/libsdl-org/SDL/issues/6033 @ericwa
2022-08-12 18:21:00 -07:00
..
SDL_msctf.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_vkeys.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowsclipboard.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windowsclipboard.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowsevents.c Only force the resize event in the DPI changed case 2022-08-12 18:21:00 -07:00
SDL_windowsevents.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowsframebuffer.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windowsframebuffer.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowskeyboard.c Fixed memory leak in the Windows driver 2022-08-01 08:14:54 -07:00
SDL_windowskeyboard.h keyboard: Only send SDL_KEYMAPCHANGED when the keymap actually changes 2022-07-31 14:02:28 -07:00
SDL_windowsmessagebox.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windowsmessagebox.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowsmodes.c windows: If a display's friendly name is blank, try the generic name. 2022-08-10 09:54:49 -04:00
SDL_windowsmodes.h Windows DPI scaling/highdpi support 2022-06-11 14:19:01 -07:00
SDL_windowsmouse.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windowsmouse.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowsopengl.c SDL_video: Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR 2022-08-02 15:45:30 -07:00
SDL_windowsopengl.h Windows DPI scaling/highdpi support 2022-06-11 14:19:01 -07:00
SDL_windowsopengles.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windowsopengles.h Windows DPI scaling/highdpi support 2022-06-11 14:19:01 -07:00
SDL_windowsshape.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windowsshape.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowstaskdialog.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowsvideo.c video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
SDL_windowsvideo.h Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_windowsvulkan.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowsvulkan.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowswindow.c Only force the resize event in the DPI changed case 2022-08-12 18:21:00 -07:00
SDL_windowswindow.h Made the window ICMProfile filename per-window 2022-08-01 17:47:26 -07:00
wmmsg.h HighDPI: remove SWP_NOSIZE in WIN_SetWindowPosition 2022-06-11 14:19:01 -07:00