Commit Graph

1085 Commits

Author SHA1 Message Date
Philipp Wiesemann
e859cd05af Fixed comment in test program. 2015-07-15 21:10:38 +02:00
Ryan C. Gordon
13cafe01a0 Added test/testdisplayinfo.c 2015-07-14 21:28:26 -04:00
Philipp Wiesemann
99c2ebb8b1 Fixed comment in test program. 2015-06-16 20:27:01 +02:00
Philipp Wiesemann
3834b61647 Fixed not needed calculation in test program. 2015-06-04 17:52:27 +02:00
Ryan C. Gordon
be1231750c testmessage: Try Unicode chars in the title, too. 2015-05-31 23:53:10 -04:00
Ryan C. Gordon
c311fafac8 testmessage.c should report when message boxes were closed. 2015-05-31 22:27:46 -04:00
Ryan C. Gordon
a0719e44ef Fixed memory leaks in testfilesystem.c (thanks, Nitz!).
Fixes Bugzilla #2991.
2015-05-31 21:50:50 -04:00
Sam Lantinga
c03e66f608 Fixed X11 build, added code to print initial modifiers to checkkeys 2015-05-28 09:52:48 -07:00
Ryan C. Gordon
906a4d69c1 Stack hint should look for 0, not -1, and not care about environment variables. 2015-05-26 21:19:23 -04:00
Ryan C. Gordon
bd539b9ed1 Added a hint to specify new thread stack size (thanks, Gabriel!).
Fixes Bugzilla #2019.

(we'll do a better fix when we break the API in SDL 2.1.)
2015-05-26 21:13:27 -04:00
Ryan C. Gordon
97bb9113e9 Make dot easier to see in testrelative. 2015-05-26 11:32:06 -04:00
Sam Lantinga
78f2198e6c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
Sam Lantinga
37547897ee Fixed bug 2989 - Memory loss in clipboard_testClipboardTextFunctions 2015-05-26 06:16:43 -07:00
Philipp Wiesemann
89eb93d305 Removed redundant NULL check in test program. 2015-05-21 21:27:53 +02:00
Philipp Wiesemann
951d768224 Changed clean-up order in test program. 2015-05-21 21:25:32 +02:00
Philipp Wiesemann
dbd2fc4f33 Fixed undefined key access in test program. 2015-05-21 21:25:14 +02:00
Philipp Wiesemann
a96660cbde Added missing loop cancel for Emscripten in test programs. 2015-05-18 21:21:14 +02:00
Philipp Wiesemann
8c5b82840a Fixed compiling test program with Emscripten. 2015-05-18 21:17:13 +02:00
Philipp Wiesemann
adceb46138 Fixed handling only one event per frame in test program. 2015-05-18 21:12:16 +02:00
Philipp Wiesemann
dc0241fc19 Fixed implicit function declaration in test program. 2015-05-06 21:09:33 +02:00
Ryan C. Gordon
d4eb1ea6a2 checkkeys: report SDL_TEXTEDITING events. 2015-05-01 01:19:00 -04:00
Ryan C. Gordon
8e60ed9d07 checkkeys: Readded the KEYUP event test. 2015-05-01 01:12:48 -04:00
Ryan C. Gordon
44708540f3 Cleanups in the joystick code.
Removed some redundant state and other confusions.

Fixes Bugzilla #2738.
2015-03-24 13:52:01 -04:00
Philipp Wiesemann
7b6434ad97 Updated test program for Emscripten. 2015-03-23 20:21:45 +01:00
Ryan C. Gordon
4b56f12266 Immediately minimize the goofy window in testaudiohotplug. 2015-03-19 22:20:12 -04:00
Ryan C. Gordon
8dc3028044 Initial work on audio device hotplug support.
This fills in the core pieces and fully implements it for Mac OS X.

Most other platforms, at the moment, will report a disconnected device if
it fails to write audio, but don't notice if the system's device list changed
at all.
2015-03-16 02:11:39 -04:00
Philipp Wiesemann
cb8c446d69 Updated name of assert type in test program. 2015-03-15 19:25:10 +01:00
Philipp Wiesemann
2b26e95343 Removed redundant include statements from test programs.
The needed header files are already included with SDL.h. Still including them in
the test programs is confusing because it somehow suggests they would be needed.
2015-02-18 21:31:21 +01:00
Philipp Wiesemann
5ac1343c94 Fixed compile warning about unused variable in wave test program. 2015-02-15 11:33:39 +01:00
Philipp Wiesemann
4c8d5e20a7 Fixed test programs for joystick not exiting on events after first disconnect.
Exit was broken since the main loop extraction needed for Emscripten support
because the former local but now global variables were not reset correctly.
2015-02-12 21:40:53 +01:00
Philipp Wiesemann
0a22818c0d Fixed bug 2873 - Joystick test won't reload after reattach
lectem

-plug in the joystick
-start testjoystick 0
-unplug
-replug

The joystick is detected but doesn't enter the loop anymore since done==SDL_TRUE
2015-02-10 20:40:03 +01:00
Philipp Wiesemann
f45215f76a Fixed compiling test with older C. 2015-02-10 20:31:05 +01:00
Philipp Wiesemann
0405296f1c Fixed bug 2866 - testrelative.c: patch to make the orange box wrap around
Eric Wasylishen

Here's a patch to make the 'testrelative' demo program more useful: it just makes the orange rectangle wrap around. Previously, the orange cursor would just disappear off screen if you move the mouse a lot in one direction, so it was hard to tell if relative mouse mode was still working.
2015-02-07 22:40:36 +01:00
Philipp Wiesemann
ace64af532 Fixed two warnings about initialized but unused local variables in tests. 2015-01-16 23:03:14 +01:00
Philipp Wiesemann
313c38e43f Removed missing test program from Makefile. 2014-12-25 22:47:04 +01:00
Philipp Wiesemann
024f1a0155 Fixed compile errors in example programs. 2014-12-25 21:42:56 +01:00
Ryan C. Gordon
e9afc9c6e2 Maybe actually patched to compile this time? 2014-12-24 22:22:35 -05:00
Ryan C. Gordon
2197ac814d Really patched to compile this time? 2014-12-24 13:21:28 -05:00
Ryan C. Gordon
13699c157c Patched to compile. 2014-12-24 13:16:27 -05:00
Ryan C. Gordon
9a4c98c6f9 Maybe patched to compile on Windows for real now? 2014-12-24 02:12:16 -05:00
Ryan C. Gordon
5f91cafa6c Patched to compile on Windows. 2014-12-24 02:06:38 -05:00
Ryan C. Gordon
c6db647a88 Patched to compile on non-Emscripten targets. 2014-12-24 02:01:12 -05:00
Ryan C. Gordon
a9626cb76e Initial merge of Emscripten port!
With this commit, you can compile SDL2 with Emscripten
( http://emscripten.org/ ), and make your SDL-based C/C++ program
into a web app.

This port was due to the efforts of several people, including: Charlie Birks,
Sathyanarayanan Gunasekaran, Jukka Jylänki, Alon Zakai, Edward Rudd,
Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)
2014-12-18 00:19:52 -05:00
Philipp Wiesemann
8ff1310094 Removed unused includes and functions from test program. 2014-12-12 21:51:30 +01:00
Philipp Wiesemann
2e4bd2c43c Replaced sqrt() with SDL_sqrt() in test program. 2014-12-12 21:02:46 +01:00
Philipp Wiesemann
7ddeda565f Removed global variable from test program.
On Android starting the application after a previous quit did not always work.
Android keeps VM processes for a faster restart and therefore the loaded *.so.
2014-12-12 21:00:25 +01:00
Philipp Wiesemann
e30a942695 Fixed setting text to clipboard in controllermap program. 2014-12-10 21:13:43 +01:00
Philipp Wiesemann
2d19a942a0 Added comments in example program. 2014-12-10 21:10:55 +01:00
Edward Rudd
73fc93717d switch to use SDL_PRI* macros for long long formatting everywhere. 2014-12-03 12:23:17 -05:00
Andreas Schiffler
7ab7d56257 Fix assert format strings/parameters in testautomation modules; improve output of SDL_CompareSurfaces to aid debugging; update platform_testSetErrorInvalidInput for SDL changes 2014-11-30 20:55:27 -08:00