Ryan C. Gordon
b5692bd236
Don't crash with a NULL thread name.
2011-10-18 00:34:45 -04:00
Ryan C. Gordon
3d70224c40
Check for __ARM_ARCH_5TEJ__ in spinlock atomics.
...
Fixes Bugzilla #1264 .
Thanks to Gueniffey for the patch!
2011-10-16 03:27:48 -04:00
Ryan C. Gordon
5a652760ab
Let iOS use OSAtomicCompareAndSwap32Barrier() if nothing else is available.
2011-10-16 03:02:46 -04:00
Ryan C. Gordon
4ff67de178
Fix up some retain/release issues with UIScreenMode objects.
...
Fixes Bugzilla #1191 .
This patch is based on work done by Vittorio Giovara.
2011-10-14 20:47:53 -04:00
Ryan C. Gordon
3f0781af54
Don't use a global JNIEnv across threads; it's not thread safe.
...
Obtain the correct environment in a thread-safe way when appropriate instead.
Fixes Bugzilla #1312 .
Thanks to Bill Chenbin for the patch!
2011-10-15 23:50:06 -07:00
Ryan C. Gordon
84848501c0
Bumped default Android API target to 5 (Android 2.0, up from 1.6).
...
We need this for GLES2 support.
2011-10-15 14:25:00 -07:00
Ryan C. Gordon
bba4029d9b
Removed STL dependency in Android code.
2011-10-15 14:16:29 -07:00
Tim Angus
aa76adf490
* Android's InputStream::skip is apparently buggy, so instead read into a dummy buffer
2011-10-14 17:29:49 +01:00
Ryan C. Gordon
116a6faf2f
Implement GL_GetProcAddress() for Android.
...
Fixes Bugzilla #1290 .
Thanks to Gabriel Jacobo for the patch!
--HG--
extra : rebase_source : 80bd6c922b4e9c74582cc85d62462d87431315bd
2011-10-13 01:30:01 -04:00
Ryan C. Gordon
32104bc32e
Specify joystick (accelerometer) support for iOS in the config header.
...
Fixes Bugzilla #1292 .
Thanks to Vittorio Giovara for the patch!
2011-10-14 00:20:44 -04:00
Kees Bakker
eecf78dc29
Do not use UIScreenMode to add a iOS display, always use the boundary
...
This solves the problem that on iPad you would get 1024x768 instead
of 768x1024 when calling SDL_GetDesktopDisplayMode(0, &mode)
See Apple's doc for UIScreenMode where is says:
"Most developers should never need to use the information provided
by this class and should simply use the bounds provided by the
UIScreen object for their drawing space."
2011-10-09 22:00:20 +02:00
Kees Bakker
8f5d9a49e6
Merge upstream updates
2011-10-08 12:45:10 +02:00
Andreas Schiffler
b1bd23a25d
Refactored audio device enumeration/naming tests ana added negative cases
2011-10-05 08:08:06 -07:00
Ryan C. Gordon
d328ee7f5b
Disable thread naming on Windows for now.
...
We need the C runtime, which we don't link against, for __try/__except.
2011-10-02 00:59:11 -04:00
Ryan C. Gordon
e07d7980cd
Patched to compile on Mac OS X (I think).
2011-10-02 00:49:52 -04:00
Ryan C. Gordon
3d8f0392c1
Further patched to compile on Windows.
2011-10-02 00:43:56 -04:00
Ryan C. Gordon
18cd3d30c7
Patched to compile on Windows.
2011-10-02 00:36:18 -04:00
Ryan C. Gordon
0863dee582
1.3 API CHANGE: Add support for naming threads.
...
--HG--
extra : rebase_source : ae532d4b4d68ef86de0fc2cb6794a622e0841bce
2011-10-02 00:29:16 -04:00
Kees Bakker
c33ade3bc3
Make SDL_uikitviewcontroller.window a real Objective-C property and synthesize
2011-09-28 21:42:02 +02:00
Kees Bakker
f1c04b8c14
Minor code cleanup in uikit/SDL_uikitview.m (no functional changes)
2011-09-28 21:25:46 +02:00
Kees Bakker
7e6128661d
Simplied the code a bit in uikit/SDL_uikitvideo.m
2011-09-28 21:13:09 +02:00
Kees Bakker
601a5ebf03
Remove unused SDL_uikitopenglview (privateMethods)
2011-09-28 21:03:05 +02:00
Kees Bakker
f74237993f
Use Objective-C construct for..in instead of oldfashioned C (uikit)
2011-09-28 20:32:26 +02:00
Sam Lantinga
dead491b27
Fixed to compile with pedantic C
2011-09-27 23:16:04 -04:00
Sam Lantinga
e934e97c76
============================================================
2011-09-27 23:15:01 -04:00
Sam Lantinga
afe3250552
============================================================
2011-09-27 23:14:16 -04:00
Kees Bakker
b0e7f4b098
Do not exit in (uikit) postFinishLaunch but store the exit status and use that to return from main()
...
Also cleanup the stored argv in main() instead of postFinishLaunch.
2011-09-27 23:49:24 +02:00
Kees Bakker
9da0e1c8c1
Cleanup of the use of include files in src/video/uikit
2011-09-27 23:40:21 +02:00
Kees Bakker
52f5e85d3b
Add Xcode-iPhoneOS/rakefile which can be used to build SDL.framework from the commandline
...
This is the rakefile from Andrey Nesterov, but slightly modified.
Use the following command:
$ rake -f Xcode-iPhoneOS/rakefile
The resulting framework is placed in the ./build directory.
2011-09-27 22:54:59 +02:00
Kees Bakker
2bd415b42a
Use a consistent source code format in src/video/uikit
...
For example:
* Opening bracket of a method/function on a new line at column 0
* space after "if", "while", etc
2011-09-27 22:51:26 +02:00
Kees Bakker
4fa8ce73fc
Remove INDENT-ON INDENT-OFF comments in src/video/uikit
...
These comments are only useful for running indent which we are
probably not going to use in Objective-C context.
2011-09-27 21:07:09 +02:00
Kees Bakker
7797271a96
Cleanup out trailing whitespace in src/video/uikit
2011-09-27 21:02:26 +02:00
Ryan C. Gordon
90ff13a669
Moved pthread spinlock check in with the rest of the pthread tests.
2011-09-21 03:08:00 -04:00
Ryan C. Gordon
131470867d
Replaced a sanity check with an SDL_assert().
2011-09-21 02:42:25 -04:00
Ryan C. Gordon
081fbdf242
Don't call pthread_exit(), returning from RunThread() is equivalent.
2011-09-20 17:48:29 -04:00
Ryan C. Gordon
596099f2c0
Simplified Windows RunThread().
...
Removed checks for things that are always true, free unneeded struct before
calling thread entry point, instead of after thread completes.
2011-09-20 17:42:58 -04:00
Ryan C. Gordon
966f4f55fd
Updated fatbuild.sh to match 1.2 version.
2011-09-19 01:49:29 -04:00
Markus Kauppila
e534989ee1
Fixed option parsing code of test harness.
2011-09-18 13:01:33 +03:00
Ryan C. Gordon
8cd891d753
Fixed compiler warnings on Haiku.
2011-09-18 03:52:08 +00:00
Ryan C. Gordon
82283b7279
Implemented x86 and x86-64 spinlock inline asm.
...
Favor it over Mac OS X API for Intel systems (but not GCC atomic intrinsics).
This might get us a little further on Cygwin builds, too.
2011-09-18 03:19:41 -04:00
Ryan C. Gordon
6fcfc35b50
Use an actual #error instead of a bogus symbol if there's no spinlock support.
2011-09-18 02:55:45 -04:00
Ryan C. Gordon
f369e4fa7c
Patched to compile on some platforms.
2011-09-18 02:09:20 -04:00
Andreas Schiffler
e9174b8226
Add tests for SDL_RectEquals and empty rectangle cases
2011-09-17 22:37:31 -07:00
Andreas Schiffler
1694584d77
Add special cases for empty rectangles in SDL_Rect functions
2011-09-17 22:35:57 -07:00
Andreas Schiffler
6c74730331
Fix SDL_RectEquals define
2011-09-17 22:35:10 -07:00
Andreas Schiffler
9d8f2b6917
Add test cases for SDL_RectEmpty
2011-09-16 08:26:20 -07:00
Andreas Schiffler
6e3ff8fdf5
Add NULL handling in SDL_RectEmpty and SDL_RectEquals
2011-09-16 08:25:49 -07:00
Ryan C. Gordon
a90884b482
Removed some FIXMEs (Nathan's changes were, in fact, correct).
2011-09-15 23:55:36 -04:00
Ryan C. Gordon
99f00f09bd
Merged Nathan Heisey's Haiku work into the main SDL 1.3 branch.
...
This was a Google Summer of Code 2011 project, sponsored by the Haiku project.
We thank Nathan and the other Haiku developers for their support!
2011-09-15 23:51:07 -04:00
Andreas Schiffler
13e13cd331
Added tests for SDL_UnionRect to testrect suite
2011-09-15 08:21:54 -07:00