Ryan C. Gordon
c6f4eaaf06
Removed tabs and DOS endlines from SDL_blit_copy.c ...
2011-10-29 00:57:45 -04:00
Ryan C. Gordon
61d3a02eab
Don't bother checking S_OK here, it'll work in falling through.
2011-10-26 12:04:05 -04:00
Ryan C. Gordon
62babe19c4
Fix X11 dynamic loading.
...
Previous change broke it.
2011-10-24 23:18:53 -04:00
Sam Lantinga
ee56d1a748
Added SDL_GetScancodeFromName() and SDL_GetKeyFromName()
2011-10-24 21:34:54 -04:00
Sam Lantinga
b285f5017f
valgrind FTW!
2011-10-24 23:00:09 -04:00
Ryan C. Gordon
864b4535a9
Use correct Xinerama APIs for querying version and availability.
...
Fixes Bugzilla #1314 .
2011-10-24 15:33:58 -04:00
Ryan C. Gordon
034365a830
SDL_X11_HAVE_* should default (and reset) to zero.
2011-10-24 12:07:41 -04:00
Ryan C. Gordon
56e56b0ce9
Add XGetInputFocus() to dynamic X11 function list.
2011-10-24 12:07:13 -04:00
Ryan C. Gordon
bc4b0f28f1
Set up window focus correctly when using an existing X11 window.
...
Thanks to Joseph Toppi for the fix!
--HG--
extra : rebase_source : be4596056669a0a9c7580355084b7f9eca345d78
2011-10-22 02:14:57 -04:00
Ryan C. Gordon
20181eb52a
XGetWindowProperty() can report success but still give you a NULL pointer.
...
Thanks to Joseph Toppi for the fix!
--HG--
extra : rebase_source : c450494b2c2e397098e50b621b01895fc587357f
2011-10-22 02:13:35 -04:00
Ryan C. Gordon
57bc440ba9
More cleanup in SDL_uikitopenglview.m
2011-10-24 11:38:52 -04:00
Ryan C. Gordon
ac5be095b9
Added stencil buffer support on iOS.
...
Thanks to Brian Barnes for the initial work on this patch!
2011-10-22 01:23:21 -04:00
Ryan C. Gordon
0b68d08019
Automated merge with https://bitbucket.org/keestux/sdl
2011-10-24 11:25:03 -04:00
Sam Lantinga
a1f3db2298
Updated from configure.in
2011-10-19 20:23:40 -04:00
Sam Lantinga
b490a90556
Get the full path for the src directory so auxdir works correctly
2011-10-19 20:23:24 -04:00
Kees Bakker
0443fd0ac5
Use a small function to release UIScreenMode after checking it is supported
2011-10-18 21:36:28 +02:00
Kees Bakker
811c7fe08d
Eliminate UIScreenMode parameter from UIKit_AddDisplay
2011-10-18 21:32:54 +02:00
Ryan C. Gordon
a8439b9553
Removed rakefile.
...
This was originally from a third party, under a different license than SDL,
so it has to go.
2011-10-18 01:11:08 -04:00
Ryan C. Gordon
1d7cfea79b
Merged with Kees Bakker's repo at https://bitbucket.org/keestux/sdl ...
2011-10-18 00:58:22 -04:00
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