Commit Graph

131 Commits

Author SHA1 Message Date
Philipp Wiesemann
9011eb1c41 Removed not needed SDL_WINDOW_SHOWN from chessboard test program. 2016-03-28 21:02:30 +02:00
Philipp Wiesemann
b82f48bad3 Fixed compiling IME test program with HAVE_SDL_TTF on C89 compilers. 2016-03-10 21:00:27 +01:00
Philipp Wiesemann
43594e3f3d Removed unnecessary include statement in test program. 2016-03-10 21:00:13 +01:00
Ryan C. Gordon
deb2acbcd9 A simple test program for SDL_qsort(). 2016-03-10 01:50:43 -05:00
Philipp Wiesemann
21d3297597 Fixed compile warnings about unused variables in IME test program. 2016-03-03 20:11:43 +01:00
Philipp Wiesemann
e8b4368512 Replaced strlen() with SDL_strlen() in IME test program. 2016-03-02 20:24:43 +01:00
Ryan C. Gordon
416d046663 Mac: Implemented SDL_GetDisplayDPI (thanks, Kirill!).
Fixes Bugzilla #3223.
2016-01-07 14:02:37 -05:00
Ryan C. Gordon
8e855f2fbc Added SDL_DROPBEGIN and SDL_DROPCOMPLETE events, plus window IDs for drops.
This allows an app to know when a set of drops are coming in a grouping of
some sort (for example, a user selected multiple files and dropped them all
on the window with a single drag), and when that set is complete.

This also adds a window ID to the drop events, so the app can determine to
which window a given drop was delivered. For application-level drops (for
example, you launched an app by dropping a file on its icon), the window ID
will be zero.
2016-01-05 01:42:00 -05:00
Ryan C. Gordon
f9b7379341 Added SDL_DROPTEXT event, for dragging and dropping string data.
This patch is based on work in Unreal Engine 4's fork of SDL,
compliments of Epic Games.
2016-01-05 02:26:45 -05:00
Ryan C. Gordon
c3114975db Added SDL_GetDisplayUsableBounds(). 2016-01-04 23:52:40 -05:00
Ryan C. Gordon
fa8c83c1c1 Remove almost all instances of "volatile" keyword.
As Tiffany pointed out in Bugzilla, volatile is not useful for thread safety:

https://software.intel.com/en-us/blogs/2007/11/30/volatile-almost-useless-for-multi-threaded-programming/

Some of these volatiles didn't need to be, some were otherwise protected by
spinlocks or mutexes, and some got moved over to SDL_atomic_t data, etc.

Fixes Bugzilla #3220.
2016-01-03 06:50:50 -05:00
Sam Lantinga
42065e785d Updated copyright to 2016 2016-01-02 10:10:34 -08:00
Philipp Wiesemann
1446faf00e Fixed a comment in two test programs. 2015-12-25 13:41:23 +01:00
Sam Lantinga
cbe19d5378 Fixed whitespace in testspriteminimal.c 2015-12-24 06:11:05 -08:00
Sam Lantinga
7b680a2ab7 Fixed mapping third party XBox controllers that have the trigger axis all the way in until they are pulled and get updated values. 2015-12-18 18:49:23 -08:00
Philipp Wiesemann
11c13916dd Fixed outdated information in README for test programs.
Two programs were removed some time ago and one was renamed.
2015-12-07 21:43:16 +01:00
Philipp Wiesemann
96229eed81 Changed comment in test program to avoid confusion.
There is a library called SDL_sound which is not used here.
2015-12-06 17:50:51 +01:00
Philipp Wiesemann
4abb73298a Fixed comment in filesystem test program. 2015-12-04 22:12:36 +01:00
Philipp Wiesemann
74de09ad4e Fixed compile error in timer test program if PRIu64 not available. 2015-12-01 22:24:04 +01:00
Philipp Wiesemann
1e2a4439a3 Fixed compile warning in IME test program. 2015-12-01 22:22:58 +01:00
Philipp Wiesemann
b2445f7bbd Fixed filesystem test program to compile with older versions of C. 2015-12-01 22:21:29 +01:00
Philipp Wiesemann
11d98995da Replaced tabs with spaces in test programs. 2015-11-25 21:39:28 +01:00
Ryan C. Gordon
e6ad29aec8 Added SDL_JoystickFromInstanceID() and SDL_GameControllerFromInstanceID(). 2015-11-14 12:35:45 -05:00
Philipp Wiesemann
d80f45666b Fixed freeing uninitialized pointers on failure cleanup in tests. 2015-10-07 21:16:59 +02:00
Alex Szpakowski
2bf6f1bcb7 Added initial support for MFi game controllers on iOS. 2015-09-20 23:08:36 -03:00
Ryan C. Gordon
d338f46512 Added copyright information on test/sample.wav; the mystery is solved! :) 2015-09-18 16:22:23 -04:00
Philipp Wiesemann
eb57d75242 Added missing SDL_Quit() in test program. 2015-08-09 20:01:01 +02:00
Ryan C. Gordon
344fbe61b3 testdisplayinfo.c forgot to SDL_Quit() at the end. 2015-08-07 01:00:14 -04:00
Philipp Wiesemann
8bbded2583 Fixed comment in test program. 2015-07-15 21:10:38 +02:00
Ryan C. Gordon
b7ecc67009 Added test/testdisplayinfo.c 2015-07-14 21:28:26 -04:00
Philipp Wiesemann
0e45984fa0 Fixed crash if initialization of EGL failed but was tried again later.
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly
uninitialized data structure if loading the library first failed. A later try to
use EGL then skipped initialization and assumed it was previously successful
because the data structure now already existed. This led to at least one crash
in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was
dereferenced to make a call to eglBindAPI().
2015-06-21 17:33:46 +02:00