Commit Graph

7303 Commits

Author SHA1 Message Date
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 cfa6f77780 Fix -Wundef warnings due to use of unguarded SDL_SENSOR_DISABLED 2023-03-28 19:29:43 +02:00
Anonymous Maarten 2d651c43a1 Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_DISABLED 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 2b39d63f27 Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DISABLED 2023-03-28 19:29:43 +02:00
Anonymous Maarten ed4cd28e9f Fix -Wundef warnings due to use of unguarded SDL_TIMER_DUMMY 2023-03-28 19:29:43 +02:00
Anonymous Maarten da6fdc6a3c Fix -Wundef warnings due to use of unguarded SDL_EVENTS_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 2a03ad2cbf AUDIO_U16 support was removed from SDL3 2023-03-27 15:33:08 -07:00
Elad Lahav 5fee62d774 Rename files under src/video/qnx 2023-03-27 15:33:08 -07:00
Elad Lahav b4f28fb532 Define _LARGEFILE64_SOURCE as 1 for all platforms 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 b026f588d6 Update to use SDL_GetFirstAudioFormat() and SDL_GetNextAudioFormat() 2023-03-27 15:33:08 -07:00
Elad Lahav 49a8b16ffd Fix use of _LARGEFILE64_SOURCE 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
Sam Lantinga 8029a767ee Fixed the accelerometer sensitivity for the Armor-X Pro controller 2023-03-27 14:27:22 -07:00
Sam Lantinga 3340864786 Increased precision for PS4 sensor data conversion 2023-03-27 14:21:05 -07:00
Pierre Wendling 975039ce0d SDL_hidapi_steam.c: Fix compilation under c2x.
When N2935 is implemented, the enum breaks compilation. Use a #define of
the SDL booleans instead.
2023-03-27 09:02:14 -07:00
Sylvain d3faec0b6e testcommon/automation: add [--audio driver] option
allow to use --audio --video --renderer for testautomation
2023-03-27 10:23:18 +02: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
Anonymous Maarten b0a5182e84 Sunset SDL_HasRDTSC 2023-03-27 06:12:49 +00:00
Anonymous Maarten 513025b182 Implement _intel_fast_(memcpy|memset)
The classic Intel compiler generates calls to these functions when
building the SDL library with SDL_LIBC=OFF.
2023-03-27 06:12:49 +00:00
Anonymous Maarten a06046c55c memset and memcpy are not intrinsic functions in new LLVM-based Intel compiler 2023-03-27 06:12:49 +00:00
Anonymous Maarten 09832c701c cpuinfo: use __cpuidex instead of __cpuid
The classic Intel Compiler does not clear the ecx register prior
to executing the cpuid opcode.
2023-03-27 06:12:49 +00:00
Frank Praznik 203a2a76fc events: Increase the size of the name buffer when logging events
Event names have grown in length and are occasionally truncated when being logged (e.g. SDL_EVENT_WINDOW_PIXEL_SIZE_CHA). Increase the event name buffer size to handle the longer names.
2023-03-26 13:01:26 -04: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
Sylvain f5dc1c0176 Add some color in testautomation logs! 2023-03-24 13:55:20 -07: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 8d3d4e523e Fix sdltest_randomAsciiStringWithMaximumLength() where it requests a string a size 0
seen with: ./testautomation --seed MILAFAP2AKVP3V4G --filter sdltest_randomAsciiStringWithMaximumLength
2023-03-24 09:52:05 +01: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 0ef85873a2 fixed uninitialized warnings from gcc7, gcc8, and gcc9. 2023-03-22 01:56:20 +03:00
Ozkan Sezer 2e4ce78b33 tidy-up SDL_yuv.c 2023-03-21 23:03:02 +03:00