Philipp Wiesemann
3c8a2ea96a
Updated a README.
2015-01-26 22:02:53 +01:00
Philipp Wiesemann
89e3e4ea3e
Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation
...
Jonas Kulla
The configure script didn't differentiate between Linux and Android, unconditionally compiling in the unix implementation of SDL_sysfilesystem.c.
I'm probably one of the very few people building SDL for android using classic configure + standalone toolchain, so this has gone undetected all along.
2015-01-26 22:00:29 +01:00
Philipp Wiesemann
0770f17f4f
Fixed bug 2816 - [patch] Android: Expose screen refresh rate
...
Jonas Kulla
Display::getRefreshRate() is available on all API levels.
2015-01-23 20:29:08 +01:00
Ryan C. Gordon
cd309e763f
CMake: Removed unused variable (thanks, Felix!).
...
"MACOSX_COREAUDIO" is actually an internal #define set up elsewhere, and
this CMake var is never exported past the CMake script anyhow.
Partially fixes Bugzilla #2807 .
2015-01-18 02:50:14 -05:00
Felix H. Dahlke
fd9647d40b
Fixed bug 2807 - Not using CoreAudio on OS X when built via CMake
2015-01-17 04:36:15 +01:00
Philipp Wiesemann
a485cc3215
Fixed wrong documentation in joystick implementation source.
2015-01-16 23:07:10 +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
e617b0ea69
Added and fixed doxygen markup in header file.
2015-01-12 23:20:52 +01:00
Philipp Wiesemann
3263f6fa5e
Replaced include of SDL_types.h with SDL_stdinc.h in internal header file.
...
SDL_types.h is deprecated and currently only includes SDL_stdinc.h itself.
2015-01-08 21:45:46 +01:00
Ryan C. Gordon
bf02bb2582
Clang static analysis builds should use C runtime directly.
...
This is a little macro magic to use malloc() directly instead of SDL_malloc(),
etc, so static analysis tests that know about the C runtime can function
properly, and understand that we are dealing with heap allocations, etc.
This changed our static analysis report from 5 outstanding bugs to 30.
5x as many bugs were hidden by SDL_malloc() not being recognized as malloc()
by the static analyzer!
2015-01-05 01:41:42 -05:00
Ryan C. Gordon
15235dc21b
Dynamic API: don't leak if a library loaded but didn't have the entry point.
2015-01-05 01:07:36 -05:00
Philipp Wiesemann
68f36b883e
Removed unused enumeration and constant from internal header file.
2014-12-31 21:00:32 +01:00
Philipp Wiesemann
2acb538412
Fixed copyright date.
2014-12-28 22:10:24 +01:00
Philipp Wiesemann
ad3db2a2be
Linked README-emscripten.md in README.md and added markdown formatting.
2014-12-28 22:02:17 +01:00
Philipp Wiesemann
ced2d4907f
Renamed README-emscripten.txt to README-emscripten.md.
2014-12-28 22:00:24 +01:00
Ryan C. Gordon
2bdda97c77
Cleaned up some compiler warnings.
2014-12-26 23:16:54 -05:00
Ryan C. Gordon
3557a42192
GLES2: Only use VBOs for Emscripten (for now).
...
This is causing a regression on actual iOS hardware, which we should revisit
after 2.0.4 ships.
2014-12-26 22:30:19 -05:00
Philipp Wiesemann
db05daf61e
Added three missing checks for return values of SDL_calloc().
2014-12-26 20:11:28 +01:00
David Ludwig
ad95e7867e
WinRT: hiding SDL_WinRTRunApp's XAML functionality, until it's ready for use
...
SDL_WinRTRunApp() is used on WinRT to launch a main(int, char **)-style
function. It has optional, and experimental support for launching content
inside a XAML control, backed by a main() function running on a separate thread.
This is provided via it's 2nd parameter, which can be a pointer to a XAML
control. (If NULL, XAML support will not be used.)
This change renames the experimental feature's parameter (to SDL_WinRTRunApp())
as "reserved", until such time as the functionality is ready for use. It will
likely be renamed again in the future, when running SDL on top of a XAML control
via a separate thread, becomes reasonably usable.
2014-12-24 11:33:42 -05:00
Philipp Wiesemann
313c38e43f
Removed missing test program from Makefile.
2014-12-25 22:47:04 +01:00
Philipp Wiesemann
9039d4f5cd
Changed Emscripten entry in gamecontroller database to allow sorting by script.
2014-12-25 22:43:17 +01:00
Philipp Wiesemann
4df8ffb5df
Removed unnecessary call to SDL_free().
2014-12-25 22:08:48 +01:00
Philipp Wiesemann
72952d4d7e
Fixed typos in a README.
2014-12-25 22:07:15 +01:00
Philipp Wiesemann
aa044a25c5
Fixed typo in header file documentation comment.
2014-12-25 22:05:48 +01:00
Philipp Wiesemann
f0061c9f70
Fixed compile warnings about unused variables.
...
Found by buildbot.
2014-12-25 22:03:07 +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
ab03b7cde7
Actually fix Unix scripts this time. :)
2014-12-24 13:23:48 -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
7f4293d409
I don't know if Unix scripts are useful at all on Emscripten, but fix them up.
2014-12-24 13:13:19 -05:00
Ryan C. Gordon
d849777d12
A little more work on the Emscripten buildbot script.
...
Should upload tarballs now, etc.
2014-12-24 13:03:20 -05:00
Ryan C. Gordon
8399b054df
Added buildbot script for Emscripten port.
2014-12-24 12:49:35 -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
6968ae195a
CMake: Minor cleanup up on the new SDL_*_ENABLED_BY_DEFAULT vars.
2014-12-13 02:40:52 -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
Ryan C. Gordon
9168cf2ecc
CMake: Replace "else(condition)" with "else()", etc.
...
Bumped required CMake version to 2.8.
Thanks to the SDL/Emscripten porting team for this cleanup.
2014-12-13 02:33:52 -05:00
Sam Lantinga
825dd6dd85
Treat any key device as a keyboard
...
This matches commit b8e85a5ac99a for when udev is not running
2014-12-13 13:20:19 -08: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
1bc1891db0
Removed extern declaration of not existing SDL_numhaptics from internal header.
2014-12-11 23:38:02 +01:00
Philipp Wiesemann
2bc2334692
Removed dependency to stdbool.h in implementation file for Android.
...
This reduced mixing of different types in the file (bool, jboolean, SDL_bool).
2014-12-10 21:20:41 +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
Philipp Wiesemann
aab1bf02ac
Fixed bug 2811 - [patch] Android core: Fix JNI 'nativeGetHint' symbol not being exported
...
Jonas Kulla
I don't see a reason why this shouldn't be exported. Currently a strip -s on the final application library eats it.
2014-12-09 22:49:16 +01:00
Philipp Wiesemann
ba7de18da0
Fixed warnings about possible loss of data in conversion.
2014-12-06 00:17:52 +01:00
Philipp Wiesemann
a3bb9a9af0
Replaced free() with SDL_free() because related allocation also uses wrapper.
2014-12-04 21:41:30 +01:00