Sylvain
ee16d2f705
Fixed bug #9792 - Android: build failure with ndk 27-beta1 due to use of deprecated ALooper_pollAll
...
replace ALooper_pollAll by ALooper_pollOnce
2024-05-16 07:49:54 -07:00
Sylvain
7b252634fd
Fixed bug #9672 - v4l2/camera prevent deadlock when there is a delay between SDL_ReleaseCameraFrame and SDL_CloseCamera
2024-05-12 15:58:40 -07:00
Sylvain Becker
6b9a8f0da1
IOS: fix compilation of testautomation.app
...
only for IOS/TVOS, also disable testautomation_pen suite which requires sdl internals files
2024-04-15 03:28:16 -10:00
Sylvain
1855ce68af
Fix bug #9331 - SDL3 Android crash getVibrator() == null
2024-03-23 16:31:21 -07:00
Sylvain
cea717e5d3
Removed some uneeded 'unsigned': renderer.num_texture_format and SDL_Vulkan_GetInstanceExtensions() prototype
2024-03-05 13:31:28 -08:00
Sylvain
2cd583ee13
Prevent asan warning on qsort():
...
'src/stdlib/SDL_qsort.c:27:5: runtime error: null pointer passed as argument 1, which is declared to never be null`
2024-01-20 11:26:02 +01:00
Sylvain
7b02d328fa
Fixed overflow in SDL_SoftStretch() (see #8878 )
2024-01-20 06:38:34 +01:00
Sylvain Becker
3639743d89
Fixed bug #7614 : Segmentation Fault in SDL_BlitSurface ( #7808 )
...
Update SDL_BlitSurface to use Intersect functions
2024-01-19 08:39:57 -08:00
Sylvain
e6c8872fdc
Fixed bug #7614 : Segmentation Fault in SDL_BlitSurface
2024-01-16 07:09:35 -08:00
Sylvain
ce0e0675de
Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY
2024-01-16 07:06:29 -08:00
Sylvain
101f903bb1
testgeometry: allow to use arrows to move the triangle
2024-01-12 11:53:34 -08:00
Sylvain
4033a0a83b
Prevent ASAN warning:
...
like SDL_triangle.c:305:30: runtime error: left shift of negative value -672
(even if the value was correctly computed)
2024-01-12 11:53:34 -08:00
Sylvain
cf0d1d7234
Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int'
2024-01-11 09:00:19 -08:00
Sylvain
312f98c2a1
Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString()
2023-12-23 12:55:21 -08:00
Sylvain
ffd82fb7c4
Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear().
2023-12-22 09:13:21 -08:00
Sylvain
5dba04b29b
Remove SDL_{Set,Get}SurfaceScale().
...
Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked()
(see #8732 )
2023-12-22 02:08:49 -08:00
Sylvain
56f111dffc
Fix compilation / same as sdl2-compat
...
testautomation_platform.c:351:28: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
351 | result = SDL_SetError("%s", testError);
| ^~
/home/slvn/release/Release_SDL/sdl2-compat/test/testautomation_platform.c:364:64: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
364 | "SDL_GetError(): expected message '%s', was message: '%s'",
2023-12-20 22:28:50 +03:00
Sylvain
a4496f7dcf
Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667
2023-12-18 06:35:52 -08:00
Sylvain
84a0d5f623
Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled()
2023-12-17 15:39:53 -08:00
Sylvain
7c71e72193
SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1).
...
At the earliest place, immediatly after driverdata is set.
(Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function).
2023-12-02 21:42:17 +01:00
Sylvain
6bb40f1d8d
SDL_VideoCapture: allow add/remove device at runtime on linux
2023-11-27 16:01:10 -05:00
Sylvain Becker
04b6b2979f
Re-add SDL_assert() with non boolean ptr syntax ( #8530 )
2023-11-11 12:28:24 +03:00
Sylvain
d8600f717e
Pointer as bool (libsdl-org#7214)
2023-11-09 14:18:36 -08:00
Sylvain
59f93e20a7
Add SDL Video Capture, with back-end for linux/macos/ios/android
2023-11-09 08:36:23 -08:00
Sylvain
aab3cbf207
SDL_thread.h: fix parameter name in comment
2023-07-07 21:55:20 +02:00
Sylvain
6763369f5b
gendynapi.py: always check comment formatting of the public api
2023-07-07 21:55:20 +02:00
Sylvain
ec90c2e26d
Add 'return' comment to SDL_ClearClipboardData
2023-07-07 10:25:06 +02:00
Sylvain
ad12bb4fd1
Remove hints that weren't used anymore !
2023-06-28 06:22:20 -07:00
Sylvain
600c615529
Fixed bug #7821 - docs/README-migration.md function name typos
2023-06-27 20:10:47 +02:00
Sylvain
70ccf34587
Script to detect use of stdlib function
2023-06-27 04:47:08 -07:00
Sylvain
95727b5c7d
use of SDL functions
2023-06-25 15:50:23 -07:00
Sylvain
6f344f29b8
After using SDL_qsort, mark sort_entries() as SDLCALL
2023-06-23 12:52:05 +02:00
Sylvain
1827a0bf62
Remove some use of C runtime functions in testevdev
2023-06-23 11:08:08 +02:00
Sylvain
6cde3835f0
Remove some use of C runtime functions (strlen, qsort)
2023-06-23 10:51:15 +02:00
Sylvain
8b86e3073d
Revert "Android: also protect Hat/Joy/PadDown,Up so there are not sent without window"
...
This reverts commit 8f83ccd750 .
2023-06-22 23:30:41 +02:00
Sylvain
8f83ccd750
Android: also protect Hat/Joy/PadDown,Up so there are not sent without window
2023-06-22 16:25:22 +02:00
Sylvain
627165a2b2
Fix comments
2023-06-22 15:44:48 +02:00
Sylvain
4339113072
SDL_DBus_AppendDictWithKeyValue: allows several key/value for other PRs
2023-06-22 10:50:35 +02:00
Sylvain
378e33bb2c
Android: potential ANR during onKeyDown/Up
...
SDLActivity may call onNativeKeyDown, while application is quitting
2023-06-16 10:17:01 +02:00
Sylvain
0f24956b0a
testautomation_hints.c: free hint memory
2023-06-13 23:12:01 +02:00
Sylvain
2c3717881f
testautomation_events.c: initialize "timestamp" to solve "conditional jump or move depends on uninitialised value"
2023-06-13 23:03:32 +02:00
Sylvain
4e0f94ea7d
Android: add timeout when waiting the SDL thread to finish
...
C SDLmain() thread might have started (mSDLThread.start() called)
while the SDL_Init() might not have been called yet,
and so the previous QUIT event will be discarded by SDL_Init() and app is running, not exiting.
This is reprocible by adding instrumentation code in the SDLActivity.
And hopefully, this could fix an ANR, where SDLActivity is in WAITING state (in thread.join()):
at java.lang.Thread.join (Thread.java:1519)
at org.libsdl.app.SDLActivity.onDestroy (SDLActivity.java)
while SDLThread seems to be running
2023-06-12 11:53:09 +02:00
Sylvain
aaccf3cd52
X11: common function to wait for the WM before sending SDL Window events
2023-06-09 19:48:59 +02:00
Sylvain
8096f7269b
Android: add robustness. check that the native code is run for the first time.
2023-06-09 10:13:58 +02:00
Sylvain
ae9d8acc3b
Android: when an EventFilter is binded to SDL_EVENT_DID_ENTER_FOREGROUND event and triggered, GL context is expected to be already restored.
2023-06-09 10:00:01 +02:00
Sylvain
dfd80f3d76
Android: control activity re-creation
2023-05-12 07:48:33 -07:00
Sylvain
6d9ccbb3c7
Android: use the headers to have the audio pause/resume definitions
...
and make SDL_PriveAudioData more private
2023-05-10 09:34:53 +02:00
Sylvain
04e17d4e46
Remove _THIS in src/audio/
2023-05-09 11:29:33 -04:00
Sylvain
81ff49f4b5
Remove _THIS in src/video and in src/events (also VideoDevice)
2023-05-09 11:29:33 -04:00
Sylvain
df314ba93e
Remove _THIS in src/core: EVDEV UDEV
2023-05-09 11:29:33 -04:00
Sylvain
9d18b4b5ed
Android: fix crash when AAUDIO isn't used (bug #7620 )
2023-04-18 21:34:18 +02:00
Sylvain
bbdde648d8
Android: let main return normally for testautomation
2023-04-14 12:26:12 +02:00
Sylvain
7afe735b5f
SDL_test: add more color when success/fail/skip
2023-04-14 12:12:45 +02:00
Sylvain
117169d610
Android AAUDIO: handle multiple devices
2023-04-14 11:31:47 +02:00
Sylvain
f38cb0d06f
Android: don't add telephony device, as it cannot be opened
2023-04-14 11:31:27 +02:00
Sylvain
0a33ed7a2b
testaudiocapture: let main exit normally
2023-04-12 11:43:20 +02:00
Sylvain
c101e719fd
testprogram: let main() return normally, don't exit for platform (eg Android) where there is some cleanup afterward.
2023-04-12 11:37:26 +02:00
Sylvain
ec053ec4f8
Android: need to save/restore the swap interval / vsync
...
otherwise, there is a difference of framerate, either with gles2 or SDL_renderer (testspriteminimal, testgles2).
2023-04-12 11:09:59 +02:00
Sylvain
3c703f2061
Android: message to indicate that main() is called for the 1 or n'th time
2023-04-06 10:08:07 +02:00
Sylvain
407b85c506
Android: audio change audio assert when try to open concurrent device to a real error
2023-04-04 09:43:01 +02:00
Sylvain
cae6b4489d
- simplication and factorization around CalculateSize and Pitch, RGB/YUV
...
- update SDL_CalculateYUVSize pitch to size_t
2023-03-30 12:05:35 +02: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
Sylvain
d3faec0b6e
testcommon/automation: add [--audio driver] option
...
allow to use --audio --video --renderer for testautomation
2023-03-27 10:23:18 +02:00
Sylvain
f5dc1c0176
Add some color in testautomation logs!
2023-03-24 13:55:20 -07:00
Sylvain
693558a894
testautomation_video: fix memory leak
2023-03-24 09:52:05 +01: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
3ccfd361cb
Fix video_getSetWindowPosition() that fail when checking events,
...
because testautomation_events.c() didn't finish to poll all events before
2023-03-24 09:52:05 +01:00
Sylvain
5976b79c1c
testautomation: create no window, so that testautomation_mouse.c::mouse_getMouseFocus() pass
...
(more precisely, the last test, when the window is destroyed, focus window should report null)
2023-03-24 09:52:05 +01:00
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
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
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
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
f9ac7b4044
Fixed bug #7467 - testautomation_audio currently fails because of invalid src/dst rate
2023-03-16 20:49:22 +01:00
Sylvain
899ee8f75a
Change SDL_BLENDMODE_MUL for gl renderers
...
Add FIXME for PSP
2023-03-16 20:25:59 +01: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
Sylvain
ad1a216d65
Refresh generation of SDL_blit_auto.c
2023-03-16 20:25:59 +01:00
Sylvain
4312abab69
testprogram: add option to use SDL_BLENDMODE_MUL
2023-03-15 22:00:13 +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
Sylvain
4053876bf6
Fix warning drop const qualifier
2023-03-08 22:22:34 +01: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
Sylvain
a946a34452
Add Drag and drop position, for x11, wayland and MACOSX
2023-03-06 08:44:05 -08:00
Sylvain
813c586edb
Change local (void*) to SDL_FunctionPointer
2023-03-06 12:38:38 +01:00
Sylvain
9b065bf54b
Fix various warnings: static /void / comma
2023-03-06 12:37:37 +01:00
Sylvain
ac3fd00018
testautomation_pixels/audio: use SDL_arraysize and fix warnings
2023-03-01 22:15:45 +01:00
Sylvain
c88becc87a
Fix kmsdrm build
2023-02-18 08:12:52 +01:00
Sylvain
03e69fbc0c
Fix potential de-referencing null pointer in SDL_EVDEV_kbd_keycode()
2023-02-16 08:22:37 +01:00
Sylvain
b44d3699b1
Fixed most small problems reported by cppcheck for src/core PR #7307 (from @kevin2kevin2)
2023-02-16 08:22:37 +01:00
Sylvain
93ed3148ba
Fixed bug #7302 - Memory 'leak' in SDL_SetMouseSystemScale()
2023-02-13 09:42:12 +01:00
Sylvain
eea4711110
gendynapi.py: add option to check doc formating (eg \param \returns \since)
2023-02-12 20:43:30 +01:00
Sylvain
81c94a165c
Add \since docs where missing and resets some to 3.0.0
...
- remove a \returns
2023-02-12 20:43:11 +01:00
Sylvain
3d93b07d5b
Documentation \param fixes
2023-02-12 08:21:36 -08:00