Commit graph

8736 commits

Author SHA1 Message Date
Philipp Wiesemann
174644080b Updated documentation of SDL_IsScreenSaverEnabled().
The screensaver is deactivated by default since SDL 2.0.2.
2016-05-20 22:18:15 +02:00
Philipp Wiesemann
977f1e0362 Windows: Fixed missing error message if SDL_GetDisplayDPI() failed. 2016-05-20 22:15:58 +02:00
Philipp Wiesemann
b82ec16a64 X11: Fixed typos in error messages and source comments. 2016-05-20 22:15:28 +02:00
Philipp Wiesemann
024c8f7fc5 X11: Fixed missing error message if SDL_GetDisplayDPI() failed. 2016-05-20 22:14:40 +02:00
David Ludwig
65f383561e WinRT: workaround a possible Windows bug, whereby hiding cursors, disables mouse-moved events
This workaround, unfortunately, requires that apps directly link to a set of
Win32-style cursor resource files (that contain a transparent cursor image).
Copies of suitable resource files are in src/core/winrt/, and should be
included directly in an app's MSVC project.

A rough explanation of this workaround/hack, and why it's needed (and
seemingly can't be done through programmatic means), is in this change's code.
2016-05-14 23:29:49 -04:00
Philipp Wiesemann
2645c41d08 X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown.
It should return 0 as a safe default if the interval can not be determined.
2016-05-11 21:11:12 +02:00
Philipp Wiesemann
087d1dc784 EGL: Fixed SDL_GL_GetSwapInterval() returning -1 on error.
It should return 0 as a safe default on errors. -1 is returned for late swaps.
2016-05-11 21:10:41 +02:00
Philipp Wiesemann
a34752c0b2 Updated documentation of SDL_CreateWindow() and SDL_CreateWindowFrom(). 2016-05-11 21:09:45 +02:00
Philipp Wiesemann
4f43ef23de iOS: Added brackets to function names in README so that doxygen links them. 2016-05-10 21:15:11 +02:00
Philipp Wiesemann
ace33eec94 Fixed missing error message if SDL_GetDisplayDPI() is unsupported. 2016-05-10 21:14:36 +02:00
Philipp Wiesemann
13dddf1a3b Fixed crash in shape test program if memory allocation failed. 2016-05-10 21:13:58 +02:00
Philipp Wiesemann
104af62971 Fixed error return values in filesystem test program. 2016-05-10 21:12:48 +02:00
David Ludwig
410827f2b7 WinRT: allow on-screen keyboard to be shown via SDL APIs, Win10/UWP only
--HG--
extra : rebase_source : f4419ce1780af7ee01e708589d4036a11f5e6d9d
2016-05-07 21:41:59 -04:00
Philipp Wiesemann
62a5ddb862 Fixed memory leak in game controller test program. 2016-05-05 22:05:21 +02:00
Philipp Wiesemann
788f608230 Updated documentation of SDL_HINT_THREAD_STACK_SIZE in header file. 2016-05-05 22:04:16 +02:00
Philipp Wiesemann
75f76edd81 Added missing links at documentation of SDL_FreeCursor() in header file. 2016-05-05 22:03:52 +02:00
Alex Szpakowski
de04db8522 Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (thanks Eric Wasylishen!) Fixes bug #3312. 2016-05-01 21:41:30 -03:00
Alex Szpakowski
aaeb21b35c Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit f0645cd8fd39
--HG--
extra : rebase_source : 593c5839dae62eb7b00a5d76820334d502b059bf
2016-05-01 19:51:10 -03:00
Philipp Wiesemann
f2cc87ed9a Android: Updated name of README file. 2016-04-25 22:17:38 +02:00
David Ludwig
691f0454e6 WinRT: another README tweak 2016-04-17 22:56:20 -04:00
David Ludwig
638d7e1a81 WinRT: README tweaks 2016-04-17 22:54:45 -04:00
Philipp Wiesemann
c5a78d39a9 Wayland: Removed not needed including and setting of errno.
One internal function was setting errno on error but it was not read afterwards.
2016-04-14 21:11:43 +02:00
Philipp Wiesemann
dd03d060c8 Fixed markdown formatting in porting README for doxygen output.
The underscores and the newlines for the list were lost before.
2016-04-14 21:10:57 +02:00
Philipp Wiesemann
085f0f8b59 Added missing error return in test program. 2016-04-14 21:10:08 +02:00
Philipp Wiesemann
9c370afe9a PSP: Fixed compile error. 2016-04-14 21:09:45 +02:00
David Ludwig
41093fdbd8 WinRT: build/link fix 2016-04-13 21:59:50 -04:00
Ryan C. Gordon
a894234362 Patched to compile on Haiku...? 2016-04-12 18:40:44 -04:00
Ryan C. Gordon
2724ca1458 windows: created threads' stack sizes should be reserved, not committed. 2016-04-12 18:12:04 -04:00
Ryan C. Gordon
591371ded7 Patched to compile on various platforms. 2016-04-12 18:11:36 -04:00
Ryan C. Gordon
2ef7fa3e3a threads: Move SDL's own thread creation to a new internal API.
This allows us to set an explicit stack size (overriding the system default
and the global hint an app might have set), and remove all the macro salsa
for dealing with _beginthreadex and such, as internal threads always set those
to NULL anyhow.

I've taken some guesses on reasonable (and tiny!) stack sizes for our
internal threads, but some of these might turn out to be too small in
practice and need an increase. Most of them are simple functions, though.
2016-04-12 16:45:10 -04:00
Ryan C. Gordon
db39f16823 threads: Handle SDL_HINT_THREAD_STACK_SIZE at top level, implement elsewhere.
--HG--
extra : amend_source : a74d6fa1e88b604d14ceea0af1d7203b9ee1a466
2016-04-12 14:38:50 -04:00
David Ludwig
2001a7148e WinRT: bug hack-fix - gamepad detection was failing on Xbox One
Win10's 'GamepadAdded' event seems to need to have something registered with it
in order for Xinput-based gamepad detection to work.  This 'fix' simply causes
a dummy event-handler to be added for this event, in case an app wants to use
gamepads on Xbox One (most likely).
2016-04-11 00:22:39 -04:00
Alex Szpakowski
cdfd49ca55 iOS: Fixed SDL_GL_CreateContext crashing instead of returning null when a GLES3 context is requested on iOS 6 and older. 2016-04-10 22:07:10 -03:00
Ryan C. Gordon
f09f435b7f alsa: Make device enumeration robust against weird results with NULL strings.
--HG--
extra : rebase_source : 8e0b50370d65317d57d80f479ffa22454f1e91f7
2016-04-04 22:49:13 -04:00
Alex Szpakowski
9811c0e220 iOS: Also do the Dictation crash workaround before executing the animation callback. 2016-04-02 13:21:01 -03:00
Alex Szpakowski
bcb782f88c Add a new hint SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH, which allows mouse click events to occur when clicking to focus a window in Mac OS X.
Fixes bug #3300.
2016-04-02 11:54:05 -03:00
Alex Szpakowski
2a4cda5de4 iOS: Workaround for a crash after Dictation is used. 2016-04-01 19:18:50 -03:00
Philipp Wiesemann
7f88cc0d85 iOS: Fixed compiling demos on C89 compilers. 2016-04-01 21:14:49 +02:00
Philipp Wiesemann
c1eb482591 PSP: Fixed returning success from unsupported SDL_RenderReadPixels().
This also fixed the missing error message.
2016-04-01 21:13:58 +02:00
Philipp Wiesemann
1ed692623b PSP: Fixed returning success for unsupported SDL_SetTextureColorMod().
Partially fixes Bugzilla #3298.
2016-04-01 21:12:37 +02:00
Philipp Wiesemann
4c5cebd73c PSP: Fixed missing error message for unsupported SDL_CreateWindowFrom(). 2016-04-01 21:11:31 +02:00
Philipp Wiesemann
5ac3e2b08a Updated info about required Ubuntu version for Mir support in README. 2016-04-01 21:10:43 +02:00
Philipp Wiesemann
1f2d4a9443 Wayland: Fixed missing error message if creating a custom cursor failed.
SDL_GetError() returned no error message because it was written to stderr only.
2016-03-28 21:03:04 +02:00
Philipp Wiesemann
ee01a42541 Removed not needed SDL_WINDOW_SHOWN from chessboard test program. 2016-03-28 21:02:30 +02:00
Philipp Wiesemann
cdebe3dc72 iOS: Removed not needed SDL_WINDOW_SHOWN from rectangles demo. 2016-03-28 21:01:46 +02:00
Philipp Wiesemann
fe02f947cd iOS: Fixed keyboard demo ignoring quit requests and window closing.
This also fixed a warning about an unused variable.
2016-03-28 21:01:26 +02:00
Philipp Wiesemann
7b39911757 iOS: Replaced #import with #include in two demos.
This extension to C is not required here and made the demos less portable.
2016-03-27 22:26:34 +02:00
Philipp Wiesemann
ed8d6939fa iOS: Restored older version of rectangles demo.
The demo did not draw rectangles like described in the demo README.
2016-03-27 22:25:13 +02:00
Philipp Wiesemann
35cd6f68b5 iOS: Updated SDL version in demo README. 2016-03-27 22:24:10 +02:00
Philipp Wiesemann
8f72e07eea Fixed comment in gesture source. 2016-03-27 22:22:13 +02:00