SDL/src/video
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
..
android keyboard: Remove no-op calls to SDL_SetKeymap() 2022-07-31 15:46:35 -07:00
arm
cocoa cocoa: Change the new sync_dispatch hint to async_dispatch. 2022-08-10 10:48:23 -04:00
directfb keyboard: Remove no-op calls to SDL_SetKeymap() 2022-07-31 15:46:35 -07:00
dummy video: dummy: Support evdev psuedo-device with no video. 2022-08-08 08:31:04 -07:00
emscripten video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
haiku video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
khronos
kmsdrm kmsdrm: slightly better device index hint parsing. 2022-07-27 12:12:36 -04:00
nacl video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
ngage video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
offscreen video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
os2 video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
pandora video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
ps2 Implement create windows method 2022-08-04 15:41:43 -07:00
psp Remove unused internal header SDL_sysevents.h 2022-07-01 07:39:48 -07:00
qnx
raspberry Remove unused internal header SDL_sysevents.h 2022-07-01 07:39:48 -07:00
riscos video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
uikit video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
vita video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
vivante video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
wayland wayland: Add roundtrip in SetWindowFullscreen() to get new size 2022-08-12 19:03:18 -05:00
windows Only force the resize event in the DPI changed case 2022-08-12 18:21:00 -07:00
winrt video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
x11 x11: Don't look up xinput2 devices unless we're in relative mode. 2022-08-09 09:50:55 -04:00
yuv2rgb Add optimiztion function with LSX in LoongArch 2022-06-06 08:49:09 -07:00
SDL_blit.c
SDL_blit.h fixed SDL_BlitMap typedef redefinition errors 2022-06-22 01:37:00 +03:00
SDL_blit_0.c
SDL_blit_1.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_A.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_auto.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_auto.h
SDL_blit_copy.c
SDL_blit_copy.h
SDL_blit_N.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_slow.c
SDL_blit_slow.h
SDL_bmp.c
SDL_clipboard.c
SDL_egl.c egl: Add support for SDL_GL_FLOATBUFFERS. 2022-08-09 15:41:02 -04:00
SDL_egl_c.h Rename variables in SDL_egl.c to be more intuitive 2022-06-11 14:20:18 -07:00
SDL_fillrect.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_pixels.c
SDL_pixels_c.h
SDL_rect.c
SDL_rect_c.h
SDL_rect_impl.h
SDL_RLEaccel.c Don't use SDL_SIMDFree() if the pixels haven't been allocated with SDL_SIMDAlloc() 2022-05-11 08:40:17 -07:00
SDL_RLEaccel_c.h
SDL_shape.c
SDL_shape_internals.h
SDL_stretch.c
SDL_surface.c video: Note unused SDL_surface creation parameters for removal in SDL 3 2022-06-13 11:53:53 -07:00
SDL_sysvideo.h Add SDL_GetPointDisplayIndex and SDL_GetRectDisplayIndex and re-implement SDL_GetWindowDisplayIndex in terms of SDL_GetRectDisplayIndex 2022-08-08 11:26:52 -07:00
SDL_video.c Fix right, bottom computation in SDL_GetClosestPointOnRect which should be exclusive, not inclusive 2022-08-08 11:26:55 -07:00
SDL_vulkan_internal.h
SDL_vulkan_utils.c
SDL_yuv.c Add optimiztion function with LSX in LoongArch 2022-06-06 08:49:09 -07:00
SDL_yuv_c.h
sdlgenblit.pl Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00