Anonymous Maarten
992a9537d9
Fix -Wundef warnings due to use of unguarded __WINRT__
2023-03-28 19:29:43 +02:00
Anonymous Maarten
2bdffd477c
Fix -Wundef warnings due to use of unguarded SDL_ALTIVEC_BLITTERS
2023-03-28 19:29:43 +02:00
Anonymous Maarten
435c45b3e5
Fix -Wundef warnings due to use of unguarded SDL_NEON_INTRINSICS
2023-03-28 19:29:43 +02:00
Anonymous Maarten
56d163e82a
Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_ANDROID
2023-03-28 19:29:43 +02:00
Anonymous Maarten
88280ddeec
Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_OPENSLES
2023-03-28 19:29:43 +02:00
Anonymous Maarten
19d5a7dedf
Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DRIVER_AAUDIO
2023-03-28 19:29:43 +02:00
Anonymous Maarten
0c161c1435
Fix -Wundef warnings due to use of unguarded SDL_THREADS_DISABLED
2023-03-28 19:29:43 +02:00
Anonymous Maarten
4bf650d488
Fix -Wundef warnings due to use of unguarded __IOS__
2023-03-28 19:29:43 +02:00
Anonymous Maarten
785055bedf
Fix -Wundef warnings due to use of unguarded __ANDROID__
2023-03-28 19:29:43 +02:00
Anonymous Maarten
4b9d10c9a5
Fix -Wundef warnings due to use of unguarded SDL_JOYSTICK_DISABLED
2023-03-28 19:29:43 +02:00
Anonymous Maarten
40113b03d3
Fix -Wundef warnings due to use of unguarded SDL_AUDIO_DISABLED
2023-03-28 19:29:43 +02:00
Anonymous Maarten
897c40285e
Fix -Wundef warnings due to use of unguarded SDL_TIMERS_DISABLED
2023-03-28 19:29:42 +02:00
Anonymous Maarten
d63f69c3b0
Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_UIKIT
2023-03-28 19:29:42 +02:00
Anonymous Maarten
f14fe3f9aa
Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_COCOA
2023-03-28 19:29:42 +02:00
Anonymous Maarten
995c345a62
Fix -Wundef warnings due to use of unguarded SDL_LOADSO_DUMMY
2023-03-28 19:29:42 +02:00
Anonymous Maarten
915d3159cf
Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_ANDROID
2023-03-28 19:29:42 +02:00
Anonymous Maarten
7f68915681
Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_WINDOWS
2023-03-28 19:29:42 +02:00
Anonymous Maarten
4e5f9b0419
Fix -Wundef warnings due to use of unguarded SDL_LOADSO_DISABLED
2023-03-28 19:29:42 +02:00
Anonymous Maarten
0c3777d566
video: fix warnings about unused variables when building without duff's loop
2023-03-28 16:59:27 +00:00
Anonymous Maarten
f7961b7c9a
video/blit: fix -Wimplicit-fallthrough warnings
2023-03-28 16:59:27 +00:00
Sylvain
c838ccf0e3
Safety fix: clear "_this->wakeup_window" when destroying the window
2023-03-28 08:28:31 -07:00
Sylvain
0c048d98af
Safety fix: clear "_this->current_glwin" when destroying the window
2023-03-28 08:28:31 -07:00
Sylvain
e494844e9a
Fixed bug #7515 - Window still grabbed after destroying
2023-03-28 09:42:19 +02:00
Sylvain
1fe2110755
Don't clear checked_texture_framebuffer
2023-03-28 09:40:17 +02:00
Elad Lahav
5fee62d774
Rename files under src/video/qnx
2023-03-27 15:33:08 -07:00
Elad Lahav
b98a501e0d
glGetProcAddress() should return SDL_FunctionPointer
2023-03-27 15:33:08 -07:00
Elad Lahav
4374645738
Add QNX video and audio modules
2023-03-27 15:33:08 -07:00
Anonymous Maarten
9ada9daf51
SDL_blit_copy: Don't call potentially FPU using SDL_memcpy in SDL_memcpyMMX
2023-03-27 06:12:49 +00:00
Frank Praznik
5a0095d373
video: Try to match the requested video mode when moving fullscreen windows
...
Try to match the requested video mode when a fullscreen window is moved to a new display, or it may not be returned to the requested mode if it is moved to a display with no matching mode, then back to the original display.
2023-03-26 12:50:32 -04:00
Frank Praznik
11323abf57
wayland: Set the minimized flag on windows until cleared by a focus event
...
The behavior when minimizing a window on Wayland is compositor dependent and clients are not informed when windows enter or leave the minimized state, however we can assume that, when receiving a minimize request from the application, the minimized window should set and keep the minimized status flag until the window regains focus.
This is required when attaching a renderer context to a minimized window, as the renderer creation process destroys and recreates the target window, and without retaining the minimized flag, the recreated window will lose the minimized state.
2023-03-24 16:17:16 -04:00
Frank Praznik
6bb48b4fe9
wayland: Unref the libdecor window when hiding
...
Hiding the decorations while not unreferencing the frame was a workaround for an internal libdecor use-after-free bug that was fixed some time ago. Revert to unreferencing the window when hiding to ensure that it is properly destroyed.
Reverts dd2e318
2023-03-24 16:17:16 -04:00
Sam Lantinga
26f511a8f4
Add SWP_NOACTIVATE to SetWindowPos flags passed in WIN_SetWindowAlwaysOnTop
2023-03-24 10:39:56 -07:00
Sylvain
d4d26e0ddb
testautomation_video: if SDL_SetWindowSize/Position isn't honored, we should check there is an event
...
x11: send the events if various occasions
2023-03-24 09:52:05 +01:00
Sylvain
4b1378fe8e
X11: fix size/position (test video_setWindowCenteredOnDisplay)
...
this fix x11 backend to correctly pass video_setWindowCenteredOnDisplay()
- get border values early (eg status bar)
- wait for size/position change to get valid values
Fix set topleft is client rendering area
2023-03-24 09:52:05 +01:00
Anonymous Maarten
749f3ebd14
Fix arguments of SDL_BlitCopyMMX
2023-03-24 02:18:06 +01:00
Ozkan Sezer
2e4ce78b33
tidy-up SDL_yuv.c
2023-03-21 23:03:02 +03:00
Anonymous Maarten
b5b9ddb205
SDL_intrin.h: define SDL_<simd>_INTRINSICS in user-visible header
2023-03-21 23:03:02 +03:00
Ozkan Sezer
79513afc19
build fixes to SDL_yuv.c
2023-03-21 23:03:02 +03:00
Ozkan Sezer
69de6964e5
use target attributes of gcc / clang for SIMD code.
2023-03-21 23:03:02 +03:00
Sam Lantinga
08d5c1386e
Fixed always on top windows on Windows
...
Also cleaned up some SetWindowPos() calls and made it explicit when we change the topmost flag
2023-03-17 10:37:21 -07:00
Sam Lantinga
e4be1247d0
Added a hint to retain window content during state changes
...
In my testing window content is always retained, but this makes our intent explicit.
2023-03-16 20:43:07 -07:00
Sam Lantinga
a776188d77
Don't change the Z order when moving or resizing windows
2023-03-16 17:19:38 -07:00
Sam Lantinga
3f67f02d0e
Fixed SDL_WINDOW_SKIP_TASKBAR on Windows
...
The WS_EX_APPWINDOW forces a window onto the taskbar, which is not what we want. Set the style to 0 to use the default behavior.
2023-03-16 16:56:46 -07:00
Sam Lantinga
c7ab378c61
We don't need to track whether we were hidden by parent focus change
2023-03-16 14:11:41 -07:00
Sam Lantinga
76176c9845
Conversely, we shouldn't automatically show children when we get focus
2023-03-16 14:09:46 -07:00
Sam Lantinga
0cb7c4ba58
Don't hide popups when losing focus
...
This isn't the behavior on Windows, and this should probably be an application defined behavior.
If we decide we want this globally, it should probably be implemented at a higher level in SDL_OnWindowFocusLost(), and properly handle the transition of focus to a child window.
2023-03-16 14:04:12 -07:00
Sylvain
5da9e99da0
Fixed bug #7462 - 8888 as default GL backbuffer red/green/blue/alpha bit sizes
2023-03-16 13:54:11 -07:00
Sylvain
b95b203116
Refresh generation of SDL_blit_auto.c after simplifying sdlgenblit.pl
2023-03-16 20:25:59 +01:00
Sylvain
41b8fee833
Simplify SDL_BLENDMODE_MUL in sdlgenblit.pl
2023-03-16 20:25:59 +01:00
Sylvain
99668c286b
Simplify SDL_BLENDMODE_MUL
2023-03-16 20:25:59 +01:00