Philipp Wiesemann
a20ee5a6bb
Fixed typo in log message in testime program.
2017-07-09 23:00:35 +02:00
Philipp Wiesemann
15876ff6e7
Fixed compiler warning about redundant declaration.
...
SDL_RecordGesture() is already in the gesture header with additional specifiers.
2017-07-09 23:00:25 +02:00
Philipp Wiesemann
439b200ab6
Fixed missing audio entries in configure summary.
2017-07-07 23:00:47 +02:00
Philipp Wiesemann
3a7dfa9f6c
haiku: Fixed compiling without OpenGL support.
2017-07-07 23:00:22 +02:00
Philipp Wiesemann
85bbc5bb9f
qnx: Fixed setting a field twice.
2017-07-07 23:00:10 +02:00
Ryan C. Gordon
2159208980
audio: trying to pacify static analysis.
2017-07-05 12:04:37 -04:00
Ryan C. Gordon
c93623c36e
x11: pass a long to XChangeProperty, not an int.
...
The Xlib documentation demands that 32-bit values here be passed in a long,
even when long itself isn't a 32-bit value. Otherwise libx11 might read
memory incorrectly.
Fixes Bugzilla #3692 .
2017-07-04 20:44:07 -04:00
Ryan C. Gordon
161524160f
power: whoops, that should be "==" not "!=".
2017-07-03 16:45:12 -04:00
Ryan C. Gordon
4c6ede193b
power: Linux /sys/class testing should skip "device" scopes.
...
(the PS4 game controllers report their batteries through this interface, which
is cool, but not helpful for powering the rest of the system. :) )
2017-07-03 16:38:37 -04:00
Philipp Wiesemann
049249a260
aix: Fixed audio debug output.
...
DEBUG_AUDIO is checked with #ifdef not #if.
2017-07-02 22:46:49 +02:00
Philipp Wiesemann
4501d18b90
haiku: Fixed using wrong constant for internal error handling.
...
SDL_CreateWindow() worked because ENOMEM is negative on Haiku.
2017-07-02 22:46:23 +02:00
Philipp Wiesemann
ca89b15ca9
qnx: Removed unused bootstrap declaration.
...
QNX_bootstrap is the VideoBootStrap. QSAAUDIO_bootstrap is still there.
2017-07-02 22:46:00 +02:00
Philipp Wiesemann
6c836ca428
qnx: Fixed configure script setting wrong variable.
2017-07-02 22:45:31 +02:00
Ryan C. Gordon
883121bee3
qnx: fixed potential buffer overflow.
2017-07-01 19:52:12 -04:00
Ryan C. Gordon
b1e646da0f
Support for QNX 7.0 (thanks, Elad!).
...
Fixes Bugzilla #3686 .
2017-07-01 17:50:47 -04:00
Philipp Wiesemann
b66c3f7ffd
haiku: Fixed memory leak if destroying window.
2017-07-01 23:01:57 +02:00
Philipp Wiesemann
ede3361bb4
aix: Fixed compile error.
2017-07-01 23:01:49 +02:00
Philipp Wiesemann
912b542e43
netbsd: Fixed comment.
2017-07-01 23:00:07 +02:00
Philipp Wiesemann
8bbf97bb45
netbsd: Removed unused field.
2017-06-29 23:00:18 +02:00
Philipp Wiesemann
6ac222255d
netbsd: Fixed compile error.
2017-06-29 23:00:09 +02:00
Philipp Wiesemann
f565e59fd8
winrt: Fixed SDL include.
2017-06-24 23:45:44 +02:00
Philipp Wiesemann
c05bfa107c
raspberrypi: Fixed typos in README.
2017-06-24 23:45:34 +02:00
Philipp Wiesemann
a60ec8961c
Fixed handling only one event per frame in testshape program.
2017-06-24 23:45:19 +02:00
Ryan C. Gordon
b39ffab4e4
xinput: use the full range of the haptic motors (thanks, Trent!).
...
XInput goes from 0 to 64k; we were feeding it values in the range of 0 to 32k.
Fixes Bugzilla #3002 .
2017-06-21 01:22:00 -04:00
Philipp Wiesemann
e230e75a35
haiku: Removed unused internal function.
...
Its functionality is already in SDL_GL_GetAttribute().
2017-06-18 23:00:42 +02:00
Philipp Wiesemann
67efa53b43
pandora: Fixed compiler warning about redefining SDL_REVISION.
...
Makefile must not create the revision header anymore because it already exists.
2017-06-18 23:00:27 +02:00
Philipp Wiesemann
2a6bb7b2de
haiku: Added support for some values set with SDL_GL_SetAttribute().
2017-06-17 22:30:28 +02:00
Philipp Wiesemann
a55fad4fd7
haiku: Fixed missing slash in path from SDL_GetPrefPath().
2017-06-17 22:30:09 +02:00
Philipp Wiesemann
1cccf1aa0d
pandora: Fixed compile error.
2017-06-16 23:30:38 +02:00
Philipp Wiesemann
68f7e898b7
directfb: Fixed quitting keyboard twice.
...
SDL_VideoQuit() already calls SDL_KeyboardQuit().
2017-06-16 23:30:30 +02:00
Philipp Wiesemann
badb73ca32
nacl: Fixed unnecessary large input text array.
2017-06-16 23:30:13 +02:00
Sam Lantinga
99af53f7fe
Get the parent of non-SDL-created windows, for completeness
2017-06-16 11:14:08 -07:00
Sam Lantinga
6df366b7fb
Clean up parent window when destroying a window
2017-06-16 10:50:29 -07:00
Sam Lantinga
9191d9a72f
Implemented SDL_WINDOW_SKIP_TASKBAR on Windows
2017-06-16 09:10:13 -07:00
Philipp Wiesemann
c50e110b12
linux: Fixed using wrong constant for input text size.
2017-06-15 23:30:50 +02:00
Philipp Wiesemann
dd5a8431b5
Fixed SDL_GetWindowWMInfo() returning success on three unsupported platforms.
2017-06-15 23:30:29 +02:00
Ryan C. Gordon
d8d586ba1a
audio: Converter now checks a strict list of channels and formats we support.
2017-06-12 21:35:24 -04:00
Sam Lantinga
ba66a89116
Fixed bug 3668 - Overflow of SDL_AudioCVT.filters with some downmixes
...
Simon Hug
There's a chance that an audio conversion from many channels to a few can use more than 9 audio filters. SDL_AudioCVT has 10 SDL_AudioFilter pointers of which one has to be the terminating NULL pointer. The SDL code has no checks for this limit. If it overflows there can be stack or heap corruption or a call to 0xa.
Attached patch adds a function that checks for this limit and throws an error if it is reached. Also adds some documentation.
Test parameters that trigger this issue:
AUDIO_U16MSB with 224 channels at 46359 Hz
V
AUDIO_S16MSB with 6 channels at 27463 Hz
The fuzzer program I uploaded in bug 3667 has more of them.
2017-06-12 16:39:15 -07:00
Sam Lantinga
b4df163b48
Fixed bug 3670 - CMake IOS haptic error
2017-06-12 16:35:34 -07:00
Philipp Wiesemann
2c6817ba86
linux: Changed internal functions to be static.
2017-06-11 22:30:58 +02:00
Philipp Wiesemann
efccae33b5
directfb: Fixed comment.
2017-06-11 22:30:49 +02:00
Philipp Wiesemann
939c15d5ec
Fixed missing error messages for SDL_GetWindowWMInfo().
2017-06-11 22:30:39 +02:00
Philipp Wiesemann
1978e72f60
directfb: Fixed crash if creating renderer.
...
SDL_GetWindowWMInfo() currently expects SDL to be 2.0.6 but SDL is still 2.0.5.
2017-06-11 22:30:24 +02:00
Philipp Wiesemann
23cd073ef8
directfb: Fixed configure script not finding shared objects for dynamic loading.
2017-06-11 22:30:06 +02:00
Ryan C. Gordon
230cc2fa66
cmake: iOS haptic section was referencing power source code (thanks, Martin!).
...
Fixes Bugzilla #3670 .
2017-06-11 16:00:45 -04:00
Ryan C. Gordon
b10e95e1f3
syswm: prevent buffer overflow if SDL and app have different config headers.
...
This only affects Wayland and DirectFB, as a Unix system generally has X11
support. Other platforms also have different sizes for the C union in
question, but are likely the only target for that platform, etc.
Apps that might run on Wayland or DirectFB will need to be compiled against
new headers from an official 2.0.6 release, or be prepared to force the x11
target, or not use SDL_GetWindowWMInfo().
Fixes Bugzilla #3428 .
2017-06-11 00:50:26 -04:00
Ryan C. Gordon
6b2c3286e5
Make compile-time assert error messages more clear.
...
Now the compiler might say this:
'SDL_compile_time_assert_mytest' declared as an array with a negative size
instead of
'SDL_dummy_mytest' declared as an array with a negative size
2017-06-10 15:38:14 -04:00
Alex Szpakowski
ce6b0c64a1
Expose display refresh rate on iOS/tvOS 10.3+.
2017-06-10 21:29:37 -03:00
Ryan C. Gordon
836a1618d0
jack: removed accidental copy/paste.
2017-06-09 17:37:43 -04:00
Ryan C. Gordon
455e5a6342
jack: added capture support.
2017-06-09 00:47:47 -04:00