mirror of
https://github.com/Ryujinx/SDL.git
synced 2026-05-24 13:26:47 +00:00
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 |
||
|---|---|---|
| .. | ||
| SDL_msctf.h | ||
| SDL_vkeys.h | ||
| SDL_windowsclipboard.c | ||
| SDL_windowsclipboard.h | ||
| SDL_windowsevents.c | ||
| SDL_windowsevents.h | ||
| SDL_windowsframebuffer.c | ||
| SDL_windowsframebuffer.h | ||
| SDL_windowskeyboard.c | ||
| SDL_windowskeyboard.h | ||
| SDL_windowsmessagebox.c | ||
| SDL_windowsmessagebox.h | ||
| SDL_windowsmodes.c | ||
| SDL_windowsmodes.h | ||
| SDL_windowsmouse.c | ||
| SDL_windowsmouse.h | ||
| SDL_windowsopengl.c | ||
| SDL_windowsopengl.h | ||
| SDL_windowsopengles.c | ||
| SDL_windowsopengles.h | ||
| SDL_windowsshape.c | ||
| SDL_windowsshape.h | ||
| SDL_windowstaskdialog.h | ||
| SDL_windowsvideo.c | ||
| SDL_windowsvideo.h | ||
| SDL_windowsvulkan.c | ||
| SDL_windowsvulkan.h | ||
| SDL_windowswindow.c | ||
| SDL_windowswindow.h | ||
| wmmsg.h | ||