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
Ryan C. Gordon
f48d0cc164
audio: Remove AUDIO_U16* support.
...
It wasn't heavily used, and you can't use memset to silence a U16 buffer.
Fixes #7380 .
2023-03-01 10:26:01 -05:00
Sam Lantinga
05ac1f8d5a
Print the full information for all joysticks that are connected
2023-02-23 11:58:14 -08:00
Anonymous Maarten
dc138ee3d4
cmake: SDL3-shared target will always be a shared target
2023-02-17 23:42:03 +01:00
Anonymous Maarten
4d8a50912b
cmake: no shared SDL libraries for riscos
2023-02-16 13:59:23 -08:00
Anonymous Maarten
e203046a5c
cmake+ci: build shared and static libraries on ci
2023-02-16 13:59:23 -08:00
Eric Wasylishen
1f46986d33
testwm.c: show all modes of all displays in the on-screen list ( #7323 )
...
* testwm.c: show all modes of all displays in the on-screen list
To allow testing https://github.com/libsdl-org/SDL/pull/7317
2023-02-14 21:05:00 -08:00
Sam Lantinga
5b77ad54c4
Fixed order and constness of parameters to SDL_ConvertAudioSamples()
2023-02-09 17:49:35 -08:00
Sam Lantinga
824b9b0a58
Removed SDL_GetDisplayDPI()
...
This function wasn't consistently correct across platforms and devices.
If you want the UI scale factor, you can use display_scale in the structure returned by SDL_GetDesktopDisplayMode(). If you need an approximate DPI, you can multiply this value times 160 on iPhone and Android, and 96 on other platforms.
2023-02-08 17:35:54 -08:00
Ozkan Sezer
e1d79b418c
fix build error due to -Wshadow
2023-02-05 20:45:02 +03:00
Sam Lantinga
653f2c4ba3
Made the render tests less verbose in the successful case
2023-02-05 09:11:00 -08:00