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
Ryan C. Gordon
edd657177c
jack: Move jack_client_t into the audio device instead a global variable.
2017-06-09 00:14:50 -04:00
Ryan C. Gordon
50e33490b6
jack: Remove BROKEN_MULTI_DEVICE code.
2017-06-08 22:20:49 -04:00
Ryan C. Gordon
c05d420351
jack: Initial shot at a JACK audio target.
...
http://jackaudio.org/
Fixes Bugzilla #2163 .
(with several more commits following to improve this code.)
2017-06-08 13:27:58 -04:00
Philipp Wiesemann
8169c59a78
Fixed ignoring first event in testshape program.
...
Found by Cppcheck.
2017-06-08 22:40:35 +02:00
Philipp Wiesemann
6ca03b36ff
Fixed environment variable of SDL_HINT_RENDER_LOGICAL_SIZE_MODE.
2017-06-08 22:40:21 +02:00
Philipp Wiesemann
ffeb3167b2
Removed unused hint includes.
2017-06-08 22:40:09 +02:00
Ryan C. Gordon
c45b811c7c
Merged Eric Wing's overscan patch.
...
Fixes Bugzilla #2799 .
2017-06-06 14:06:40 -04:00
Olli Kallioinen
6232ffccc0
Android cmake build fixed to work with the official android gradle plugin
2017-06-04 21:25:57 +03:00
Ryan C. Gordon
a9d93a880d
cmake: don't use /NODEFAULTLIB if we are using the C runtime (thanks, Rob!).
...
Fixes Bugzilla #3640 .
2017-06-06 13:39:29 -04:00
Ryan C. Gordon
5617065c5c
windows: Change the default on SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING.
...
It's easier for Visual Studio users that want this information to turn it on
or live without it, than it is to explain why every debugger that isn't Visual
Studio crashes out here. Eventually SetThreadDescription() will be the thing
everyone uses anyhow.
Fixes Bugzilla #3645 .
(and several others).
2017-06-06 13:12:43 -04:00
Ryan C. Gordon
5fba522e19
windows: Fix compiling of XInput code on newer MinGW installs.
...
Fixes Bugzilla #3609 .
2017-06-06 12:35:35 -04:00
Ryan C. Gordon
1e5ac2ce81
emscripten: listen for pointerlockchange events on the #document specifically.
2017-06-05 21:30:25 -04:00
Philipp Wiesemann
9a39e8d796
Removed duplicate includes.
2017-06-04 23:15:47 +02:00
Philipp Wiesemann
3b2e0bf33c
Fixed comments in headers for doxygen output.
2017-06-04 23:15:39 +02:00
Philipp Wiesemann
234821d788
android: Fixed missing error message for SDL_GetBasePath().
2017-06-04 23:15:27 +02:00
Philipp Wiesemann
909958519c
Fixed SDL_GL_SetSwapInterval() returning success on two unsupported platforms.
2017-06-04 23:15:13 +02:00
Philipp Wiesemann
fd59f414f3
haiku: Fixed missing title bar for windows with decorations.
...
B_BORDERED_WINDOW_LOOK has a border but no title bar.
2017-06-03 23:00:50 +02:00
Philipp Wiesemann
0d7449e961
android: Moved internal function to new position.
...
It was grouped with functions for the public system header.
2017-06-03 23:00:40 +02:00
Philipp Wiesemann
7b4f8688ad
Corrected names of header file guards.
2017-06-03 23:00:15 +02:00
Philipp Wiesemann
99b87da8cf
haiku: Changed internal variable to be static.
2017-06-02 22:15:37 +02:00
Philipp Wiesemann
f8dc17bacd
Fixed crash if creating textures failed in testshape program.
2017-06-02 22:15:23 +02:00
Philipp Wiesemann
a4aa084df6
Fixed crash if calling SDL_CreateShapedWindow() on unsupported platforms.
2017-06-02 22:15:12 +02:00
Bastien Bouclet
85142064d5
x11: Don't send duplicate events when reconciling the keyboard state
...
Failing to check if a key was known to be pressed by SDL was causing
SDL_SendKeyboardKey to send duplicate key pressed events with the repeat
property set to true.
Fixes Bugzilla #3637 .
2017-04-22 19:53:52 +02:00
Ryan C. Gordon
8fad524409
test: Makefile.in should copy bitmap and wave files to build directory.
...
I've lost count of the times I've forgotten to do this manually and wondered
why loopwave can't open sample.wav. :)
2017-05-29 18:24:06 -04:00
Ryan C. Gordon
e983ea316f
linux: Don't crash if fcitx support is requested but unavailable.
...
Fixes Bugzilla #3642 .
2017-05-29 02:48:51 -04:00
Ryan C. Gordon
23b242bba7
Fixed whitespace code style.
2017-05-29 00:51:38 -04:00
Ryan C. Gordon
b2e7bb2eeb
linux: removed IBus_utf8_strlen(), use SDL_utf8strlen() instead.
2017-05-29 00:51:02 -04:00
Ryan C. Gordon
f9c6be1a9c
fcitx: removed incompatibly-licensed code.
2017-05-29 00:54:08 -04:00
Ryan C. Gordon
bf09ce5fce
stdlib: added SDL_utf8strlen().
2017-05-29 03:01:05 -04:00
Philipp Wiesemann
ef90c17686
nacl: Fixed crash if allocating memory for audio device failed.
2017-05-28 21:50:47 +02:00
Philipp Wiesemann
22e6082d39
qnx: Removed unnecessary check for available audio devices.
2017-05-28 21:50:37 +02:00
Philipp Wiesemann
ec1c016ea0
qnx: Removed unnecessary call to SDL_zerop() after SDL_calloc().
2017-05-28 21:50:27 +02:00
Philipp Wiesemann
c5ca51cc03
haiku: Fixed SDL_SetClipboardText() putting random data in clipboard.
2017-05-28 21:50:11 +02:00
Ryan C. Gordon
451ca211fc
haiku: Correctly set keyboard focus (thanks, Kai!).
...
The message sent upon the window being activated or deactivated, to trigger
the call to SDL_SetKeyboardFocus was missing a mandatory parameter. So
keyboard focus was never properly set.
Fixes Bugzilla #3658 .
2017-05-28 15:36:09 -04:00
Ryan C. Gordon
ea55b8c4f2
power: Add Linux org.freedesktop.UPower D-Bus implementation.
...
Fixes Bugzilla #3485 .
(I think.)
2017-05-28 07:14:11 -04:00
Ryan C. Gordon
5435a621d1
linux: Simplify D-Bus interface, remove lots of boilerplate.
2017-05-28 07:11:52 -04:00
Ryan C. Gordon
77b469666b
linux: Make system D-Bus connection available (in addition to session).
2017-05-28 07:08:10 -04:00
Ryan C. Gordon
a60238d3e0
wasapi: properly report init failure if on pre-Vista version of Windows.
...
We really should change the Init interface to return 0 on success and -1 on
error, like everything else, to avoid this sort of confusion.
2017-05-28 00:41:55 -04:00
Philipp Wiesemann
ee5bfb1b02
haiku: Fixed SDL_SetClipboardText() allocating too much memory and cutting text.
...
It allocated pointers instead of chars and passed a wrong size to SDL_strlcpy().
2017-05-27 23:30:21 +02:00
Philipp Wiesemann
28aebb4bb8
Removed unused errno includes.
2017-05-27 23:30:07 +02:00
Ryan C. Gordon
6abcd8c63b
code style: wrap a single-statement if in braces.
2017-05-27 00:33:26 -04:00
Ryan C. Gordon
d0044c7009
windows: msgboxes should specify a parent HWND if possible (thanks, Ismael!).
...
This lets them be properly modal.
Fixes Bugzilla #3650 .
2017-05-27 00:30:06 -04:00