Sam Lantinga
f5ac58c9f4
Added tests to cover invalid surface blits
...
Reproduction case for https://github.com/libsdl-org/SDL/issues/12844
(cherry picked from commit 89d7d406ab
)
2025-04-22 13:06:36 -07:00
Sam Lantinga
6b665066f0
Added SIMD blitters for 8888 -> 8888 format conversion
...
(cherry picked from commit e20e27e1fb
)
2025-03-30 21:29:48 -07:00
Sam Lantinga
d8756582f9
Don't create surfaces with invalid pixel formats
...
Fixes https://github.com/libsdl-org/SDL/issues/12556
(cherry picked from commit 476e7e54cb
)
2025-03-20 09:43:40 -07:00
Sam Lantinga
776f0a685c
Fixed sscanf("026", "%1x%1x%1x", &r, &g, &b)
...
Fixes https://github.com/libsdl-org/SDL/issues/12510
(cherry picked from commit be6ed6e9c4
)
2025-03-10 14:46:30 -07:00
Sam Lantinga
b32cd4f84b
Make texture scale mode a part of the 2D renderer draw state
...
Also added texture addressing mode support to the PSP and Vita renderers (untested)
Fixes https://github.com/libsdl-org/SDL/issues/12461
(cherry picked from commit cb099ebd4f
)
2025-03-05 22:39:31 -08:00
Frank Praznik
edaf447678
tests: Add showing/setting the primary selection text to testclipboard
2025-02-27 12:35:37 -05:00
Sam Lantinga
049a7a04de
Wake the main thread for main function dispatch
...
Also added a test case to catch the main thread waiting indefinitely when a function is pending.
Fixes https://github.com/libsdl-org/SDL/issues/12390
2025-02-25 12:50:41 -08:00
Sam Lantinga
6980325310
Added support for the "%n" sscanf format specifier
2025-02-24 20:02:59 -08:00
Sam Lantinga
bc85c55350
testcontroller: create window with high pixel density
...
This improves the picture quality when running on an iPhone.
2025-02-22 09:02:01 -08:00
Anonymous Maarten
5c214e5e9c
testcamera: SDL_AppQuit destroys state and SDL
...
This fixes a double-free of SDLTest_CommonState
2025-02-21 23:04:13 -08:00
Petar Popovic
b5297de56f
Add 'const' to pointer parameters
2025-02-21 15:59:40 -08:00
Petar Popovic
c70f54e28b
Remove redundant casts
2025-02-21 10:09:10 -08:00
Sam Lantinga
f24f9d3bed
Revert "testcamera: added support for Motion JPEG camera frames"
...
This reverts commit 5ccee77190
.
2025-02-20 12:16:26 -08:00
Petar Popovic
045a4492f1
test/testaudio.c: Fix use-after-free warning
2025-02-16 19:35:54 -08:00
Petar Popovic
da2460f9e7
test/testautomation_audio.c: Free variables before returning
2025-02-16 16:57:56 -08:00
Petar Popovic
831fc70923
test/testautomation_intrinsics.c: Free variables before returning
2025-02-16 07:50:07 -08:00
Sam Lantinga
5ccee77190
testcamera: added support for Motion JPEG camera frames
2025-02-10 17:18:16 -08:00
Sam Lantinga
c4550d906a
testcontroller: show the gamepad device type
2025-02-05 08:27:26 -08:00
Petar Popovic
8ccf85c59e
Formatting spaces around pointer symbol.
2025-02-03 17:03:26 -08:00
Sam Lantinga
409f3ade88
Removed SDF test program
...
There's a much better example of SDF support in testgputext in SDL_ttf
2025-01-29 04:15:27 -08:00
Sam Lantinga
4176e188bf
Enable testgles2 on all platforms
...
We use SDL's headers so we're not dependent on system OpenGL header availability.
2025-01-29 04:03:31 -08:00
Petar Popovic
a336b62d8b
Remove newlines from error messages
2025-01-23 11:45:04 -08:00
Petar Popovic
983cfe8b1c
Remove even more newlines from log messages
2025-01-23 09:32:50 -08:00
nightmareci
718034f5fa
Remove newlines from log messages
2025-01-22 20:25:04 -08:00
Anonymous Maarten
cb3cc28809
emscripten: pass --no-sandbox to the chrome web driver
...
This fixes running the Emscripten tests on Ubuntu 24.04.
2025-01-22 02:48:32 +01:00
Anonymous Maarten
efa6e7aece
android: add style to test apk's
2025-01-21 20:20:17 +01:00
Sam Lantinga
9b454a762c
Revert "testautomation: don't validate alpha values on XRGB formats"
...
This reverts commit 759e01bd64
.
It's better to return the expected format from SDL_RenderReadPixels() than skip alpha testing.
2025-01-20 12:57:48 -08:00
Frank Praznik
819628c6bf
testautomation: Remove Win32 borderless resizable hint
...
This defaults to 'true' now, so setting it manually is no longer necessary.
2025-01-20 14:49:35 -05:00
Sam Lantinga
759e01bd64
testautomation: don't validate alpha values on XRGB formats
...
The results are not defined, and some renderers set 0xFF always and other renderers set the alpha to blend results, even though it won't be used when rendering.
Fixes --filter render_testBlendModes with D3D renderers
2025-01-20 11:29:41 -08:00
Sam Lantinga
362f96a6cf
testcontroller: use SDL_MAIN_USE_CALLBACKS so updates happen during live resizing
2025-01-20 10:11:31 -08:00
Sam Lantinga
b716eeefef
testtray: minor cleanup
2025-01-19 18:53:55 -08:00
Ryan C. Gordon
874c07f8de
storage: Don't allow "." and ".." paths, enforce '/' dir separators.
...
Also clarify what characters are valid for Storage paths in the category docs.
Fixes #11079 .
Fixes #11370 .
Fixes #11369 .
2025-01-16 08:19:28 -05:00
Ryan C. Gordon
67664a0427
testfilesystem: test some Storage APIs, too.
2025-01-16 08:19:28 -05:00
Ryan C. Gordon
87e1b0eb89
filesystem: SDL_EnumerateDirectory() gives dirs with path seperators appended.
...
Fixes #11065 .
Fixes #11427 .
2025-01-16 08:19:28 -05:00
Ramez Ragaa
e98ee9bb04
Adjust testgl.c to test gl_release_behavior
2025-01-16 08:19:05 -05:00
Evan Hemsley
fb6df93384
GPU: Add name properties to resources ( #11946 )
2025-01-13 17:29:08 -08:00
Ozkan Sezer
307dac97ac
testcontroller.c: fix build errors due to -Wformat after commit b524af1
2025-01-12 22:00:02 +03:00
Sam Lantinga
b524af1b43
testcontroller: log the ID of gamepads as they are added and removed
2025-01-12 10:02:39 -08:00
Frank Praznik
6b776a9989
keyboard: Add some SDL keycodes for common Xkb keys
...
Add SDL keycodes for keys found commonly found in the default Xkb layout, such as left tab and compose, and keys frequently used for custom modifiers such as Meta, Hyper, and Level5 Shift.
As these keys aren't Unicode code points and don't have associated scancodes (at least on modern keyboards), they are placed in the new extended key code space, with bit 30 set as a flag.
2025-01-09 17:26:41 -05:00
Ryan C. Gordon
3f7f632e14
audio: Added SDL_AudioDeviceStreamPaused.
...
We had the other two wrapper functions to pause and resume, and forgot query.
2025-01-09 01:36:57 -05:00
Ryan C. Gordon
f61860fa93
testautomation: fixed incorrect test.
...
The test was doing this:
- The output size is 80x60
- The logical size is 40x30
- The viewport is { 10, 7, 40, 30 }
- Draw to fill this whole viewport.
This would offset the filled rectangle a little, as before, but then the
viewport was the size of the entire logical space, so it wasn't a rectangle
centered in the middle of the output, as was expected.
This used to produce the expected output before the fix in
fa7a529912
. But it appears the test was
incorrect, so this tweaks the viewport to produce the expected result.
2025-01-08 23:33:39 -05:00
Frank Praznik
f2f04e825d
tests: Fix get/set window size test being skipped
...
A return check conversion was missed when the SDL_* functions were converted to return boolean values instead of int, which caused this test to be skipped.
2025-01-08 11:02:45 -05:00
Ryan C. Gordon
b674b715f5
fix integer overflow ub in testautomation_sdltest
...
(cherry-picked from commit f804293a27
)
2025-01-06 13:18:03 -05:00
Ryan C. Gordon
6a0405b933
testautomation: Added a test to stdlib_swprintf that previously would fail.
2025-01-05 02:45:15 -05:00
Anonymous Maarten
efba42a67b
tests: avoid undefined signed overflow
2025-01-04 01:06:29 +01:00
Anonymous Maarten
53aaf8c26b
cmake: custom generate-XXX targets must depend on outputs
2025-01-04 00:19:45 +01:00
Sam Lantinga
a8c41135aa
Enable themed Windows dialogs when building with Visual Studio
2025-01-03 09:25:10 -08:00
Ryan C. Gordon
e484182765
testcamera: Log the camera backend in use.
2025-01-03 03:46:22 -05:00
Sam Lantinga
9f7b2c3595
Fixed incorrect error message when a joystick can't be opened
2025-01-02 17:18:09 -08:00
Erik Soma
c6b5c21aaf
clipboard: Ensure SDL_ClearClipboardData clears data even when no data has been set
2025-01-02 07:23:27 -08:00