Sylvain
f30a182de2
Fix video_getSetWindowGrab(): need to raise the window, and wait for focus gained
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
Anonymous Maarten
c30903882b
cmake+tests: include SDL_build_config.h in select tests + add include paths
2023-03-21 23:03:02 +03:00
Ozkan Sezer
262b13431d
testautomation_intrinsics.c (sse2): change _mm_store_pd to _mm_storeu_pd
...
fixes segmentation faults
2023-03-21 23:03:02 +03:00
Ozkan Sezer
7a54d363cf
testautomation_intrinsics.c: correct call to check SSE4.1 presence.
2023-03-21 23:03:02 +03:00
Ozkan Sezer
6c9780720b
cmake: added configuration options for AVX2, AVX512F, SSE4.1, and SSE4.2
...
adjusted SDL_intrin.h and testautomation_intrinsics.c accordingly.
2023-03-21 23:03:02 +03:00
Anonymous Maarten
5775d5e112
Add intrinsics test automation
2023-03-21 23:03:02 +03:00
Anonymous Maarten
81ca9d61d6
cmake+test: add more automated tests + use properties
2023-03-21 02:19:19 +01:00
Anonymous Maarten
115460a930
torturethread: sleep a bit in SubThreadFunc to avoid starvation
...
testtorture, built by MinGW from msys2, got blocked indefinitely.
2023-03-21 02:19:19 +01:00
Anonymous Maarten
6a9c692bb9
testsem: don't re-parse positional argument twice
2023-03-21 02:19:19 +01:00
Anonymous Maarten
4a6528e3f0
testprograms: parse arguments using SDLTest_CommonState
2023-03-17 17:54:16 +01:00
Anonymous Maarten
8bea41f737
testthread: parse arguments using SDLTest_CommonState + add arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
64b739bc1e
testlock: parse arguments using SDLTest_CommonState + extra arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
4d86a83fa9
testver: don't allow any arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
0268881e30
testspriteminimal: don't allow any arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
08d5235da0
testintersections: check integer argument + no global done + get final tick before SDL shutdown
2023-03-17 17:54:16 +01:00
Anonymous Maarten
6e2851878f
testhittesting: use SDLTest_Common for creating window(s) and renderer(s)
2023-03-17 17:54:16 +01:00
Anonymous Maarten
75da730a88
testfile: fix reference values
2023-03-17 17:54:16 +01:00
Anonymous Maarten
ee13b74d59
testyuv: fix buffer overflow write
2023-03-17 17:54:16 +01:00
Sylvain
4286f463a8
testautomation_pixels: calling SDL_DestroyPixelFormat or SDL_DestroyPalette with NULL parameter doesn't generate an error
2023-03-17 10:28:54 +01:00
Sam Lantinga
e6fe7273a5
Toggle menu visibility with the space bar
2023-03-16 11:24:21 -07:00
Sam Lantinga
422517c036
Allow passing 0 to SDL_SetWindowMinimumSize() and SDL_SetWindowMaximumSize() to indicate no limit
2023-03-15 16:13:56 -07:00
Sam Lantinga
d95b04feaf
Fixed display ID check in video_setWindowCenteredOnDisplay
2023-03-15 16:12:54 -07:00
Sylvain
4312abab69
testprogram: add option to use SDL_BLENDMODE_MUL
2023-03-15 22:00:13 +01:00
Sam Lantinga
b07a049923
Fixed window positioning in testpopup
2023-03-15 10:35:26 -07:00
Sam Lantinga
e794057d9f
Move the popup windows to follow the mouse
2023-03-15 10:19:55 -07:00
Anonymous Maarten
684709a5b6
cmake: fix building testautomation without X11 support
2023-03-15 14:54:20 +01:00
Anonymous Maarten
64e242fd77
cmake: Add test resources to list of files to clean
2023-03-15 14:54:20 +01:00
Sylvain
f1d9c36136
testshape: now uses SDL_WINDOW_TRANSPARENT instead of the shaped window API
2023-03-13 21:23:04 +01:00
Sylvain
2cafa52598
- Added SDL_WINDOW_TRANSPARENT to request a window with transparent framebuffer
...
- Remove SDL_VIDEO_EGL_ALLOW_TRANSPARENCY hint, EGL now checks 'window->flags & SDL_WINDOW_TRANSPARENT'
2023-03-13 21:23:04 +01:00
Frank Praznik
cfeb663c87
tests: Add popup window test program
...
Right click to create new popup menus. Clicking over an existing popup menu will create a child menu. Left click to close all menus. Hover to display a tooltip that is the child of the window below it. Closing the application closes the root window, which should automatically destroy any open popup windows and exit gracefully.
2023-03-10 15:51:13 -08:00
Qrox
71c80c478a
Uses integer arithmetics in SDL_ResampleAudio
...
- Revert resampler workaround
- Avoids precision loss caused by large floating point numbers
- Adds unit test to test the signal-to-noise ratio and maximum error of resampler
- Code cleanup
2023-03-09 22:12:03 -08:00
Sam Lantinga
c6443d86c9
Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!)
2023-03-09 15:10:44 -08:00
David Demelier
d0c4849d0b
Rename SDL_atomic_t to SDL_AtomicInt
2023-03-09 09:00:09 -08:00
Sylvain
4053876bf6
Fix warning drop const qualifier
2023-03-08 22:22:34 +01:00
Sam Lantinga
91b328c2c6
Fixed emscripten build
2023-03-08 08:58:26 -08:00
Sylvain
d78817703e
Fix build
2023-03-08 16:42:10 +01:00
Sylvain
c963f02571
More fix warnings about static function and prototype
2023-03-08 16:14:09 +01:00
Sylvain
16bb6a0b3d
Fix warnings about static function and prototype
2023-03-08 11:41:18 +01:00
Sam Lantinga
698dbd8464
SDL_CreateWindow() has been simplified and no longer takes a window position.
2023-03-06 09:50:12 -08:00
Sylvain
a946a34452
Add Drag and drop position, for x11, wayland and MACOSX
2023-03-06 08:44:05 -08:00
Sam Lantinga
3bba33932f
Fixed testshape on high DPI displays
...
Since the shape is set based on the pixels in the image, we want the window to have the same number of pixels.
2023-03-02 10:15:14 -08:00
Sam Lantinga
59ca0c8b22
Simplified the testshape example
2023-03-02 10:00:15 -08:00
Sam Lantinga
bd2e2ee7aa
SDL_RenderTexture() and SDL_RenderTextureRotated() take floating point source coordinates
...
See the discussion at https://discourse.libsdl.org/t/sdl-rendercopyf-uses-ints/36732/8
2023-03-02 09:42:32 -08:00
Sam Lantinga
9e14559e80
Print the mapping used for a gamepad in testgamepad
2023-03-01 16:37:56 -08:00
Anonymous Maarten
790612f4f8
cmake: make sdltests_utils static library
2023-03-01 23:41:22 +01:00
Sylvain
ac3fd00018
testautomation_pixels/audio: use SDL_arraysize and fix warnings
2023-03-01 22:15:45 +01:00
Ozkan Sezer
6fc32491c7
testautomation_audio.c: use SDL_arraysize for g_numAudioFormats.
2023-03-01 22:56:56 +03:00
Sam Lantinga
d5775f6708
The gamepad event structures caxis, cbutton, cdevice, ctouchpad, and csensor have been renamed gaxis, gbutton, gdevice, gtouchpad, and gsensor.
...
Fixes https://github.com/libsdl-org/SDL/issues/7375
2023-03-01 09:48:28 -08:00
Ozkan Sezer
8d8b3d3a9a
fix testautomation_audio.c after commit f48d0cc
2023-03-01 18:37:56 +03:00