Commit Graph

4731 Commits

Author SHA1 Message Date
Sam Lantinga
aaf891d9c8 Fixed a typo, we should set the driverdata if we are 3.2 or newer. 2011-11-08 00:02:47 -05:00
Sam Lantinga
e30ec4d8ce Fixed list loop caused when there are two entries in the list and the one being returned is already at the head. 2011-11-07 23:10:49 -05:00
Sam Lantinga
4305c920da Fixed SDL applications being killed immediately after being backgrounded, because they were trying to draw while minimized. 2011-11-07 23:07:00 -05:00
Sam Lantinga
c932d63cdb Need to send a key up, silly. 2011-11-07 02:24:52 -05:00
Sam Lantinga
76714d4f99 Fixed a typo in the header. 2011-11-07 02:25:01 -05:00
Sam Lantinga
6a5a074397 Fixed double-free in the shader cache at shutdown 2011-11-07 00:45:13 -05:00
Ryan C. Gordon
5054c0e57d Mac OS X: Fixed build when compiling without Cocoa support.
Thanks to Martin Gerhardy for the patch!
2011-11-06 17:05:48 -05:00
Ryan C. Gordon
c33e36f58b Fixed some preprocessor mistakes introduced in iOS project cleanup. 2011-11-03 11:51:47 -04:00
Ryan C. Gordon
dd3d93c50f Fix crash on X servers without UTF-8 support. 2011-10-31 23:37:57 -04:00
Sam Lantinga
6371c44a9e Lots of fixes importing SDL source wholesale into a new iOS project 2011-10-31 05:56:58 -04:00
Sam Lantinga
04ce234fd4 This code works for OpenGL ES 1.1 as well! :) 2011-10-31 03:06:32 -04:00
Sam Lantinga
462a6474ac Implemented RenderReadPixels for the OpenGL ES 2.0 renderer. 2011-10-31 02:55:21 -04:00
Sam Lantinga
a347411651 SDL_ConvertPixels() returns 0 on success 2011-10-31 02:44:21 -04:00
Sam Lantinga
4827ef3a38 Fixed warnings on iOS 2011-10-31 01:59:54 -04:00
Sam Lantinga
c2a6df6073 The draw color affects RenderClear() as well. (thanks to the feedback form to whoever pointed this out) 2011-10-30 17:53:54 -04:00
Sam Lantinga
66d375d59e Fixed typo - thanks Sheena! 2011-10-30 17:31:59 -04:00
Andreas Schiffler
d2ad34e8d3 Fix sdl-haiku buildbot compiler warnings 2011-10-30 00:19:13 -07:00
Andreas Schiffler
bc907fee45 Update SDL_HasClipboardText functions to return value based on clipboard content; Fix memory leak in fallback SetClipboard implementation 2011-10-29 23:43:59 -07:00
Andreas Schiffler
71caea56e8 Add clipboard tests 2011-10-29 23:34:19 -07:00
Ryan C. Gordon
a672530595 SDL_memcpyMMX(): Fixed handling of overflow bytes.
Thanks to Mason Wheeler for the fix!
2011-10-29 01:11:47 -04:00
Ryan C. Gordon
1a32c6a0c5 SDL_memcpyMMX(): Make sure srcskip and dstskip are 8-byte aligned.
Thanks to Patrick Baggett for the fix!
2011-10-29 01:03:50 -04:00
Ryan C. Gordon
40b38ee8db Removed tabs and DOS endlines from SDL_blit_copy.c ... 2011-10-29 00:57:45 -04:00
Ryan C. Gordon
ab5d942d93 Don't bother checking S_OK here, it'll work in falling through. 2011-10-26 12:04:05 -04:00
Ryan C. Gordon
599c080360 Fix X11 dynamic loading.
Previous change broke it.
2011-10-24 23:18:53 -04:00
Sam Lantinga
6d456a4116 Added SDL_GetScancodeFromName() and SDL_GetKeyFromName() 2011-10-24 21:34:54 -04:00
Sam Lantinga
9c2780471b valgrind FTW! 2011-10-24 23:00:09 -04:00
Ryan C. Gordon
bdb05fd683 Use correct Xinerama APIs for querying version and availability.
Fixes Bugzilla #1314.
2011-10-24 15:33:58 -04:00
Ryan C. Gordon
fcca056ae4 SDL_X11_HAVE_* should default (and reset) to zero. 2011-10-24 12:07:41 -04:00
Ryan C. Gordon
2412f91654 Add XGetInputFocus() to dynamic X11 function list. 2011-10-24 12:07:13 -04:00
Ryan C. Gordon
dfddb889df Set up window focus correctly when using an existing X11 window.
Thanks to Joseph Toppi for the fix!
2011-10-22 02:14:57 -04:00
Ryan C. Gordon
1871363aac XGetWindowProperty() can report success but still give you a NULL pointer.
Thanks to Joseph Toppi for the fix!
2011-10-22 02:13:35 -04:00
Ryan C. Gordon
756aae4a51 More cleanup in SDL_uikitopenglview.m 2011-10-24 11:38:52 -04:00
Ryan C. Gordon
d36f39749f 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
1e3032b188 Automated merge with https://bitbucket.org/keestux/sdl 2011-10-24 11:25:03 -04:00
Sam Lantinga
5c394a276d Updated from configure.in 2011-10-19 20:23:40 -04:00
Sam Lantinga
cf218dc428 Get the full path for the src directory so auxdir works correctly 2011-10-19 20:23:24 -04:00
Kees Bakker
66e3b3d7a6 Use a small function to release UIScreenMode after checking it is supported 2011-10-18 21:36:28 +02:00
Kees Bakker
4b46fb22ec Eliminate UIScreenMode parameter from UIKit_AddDisplay 2011-10-18 21:32:54 +02:00
Ryan C. Gordon
e5554f4f2a 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
d47d246678 Merged with Kees Bakker's repo at https://bitbucket.org/keestux/sdl ... 2011-10-18 00:58:22 -04:00
Ryan C. Gordon
2014d62292 Don't crash with a NULL thread name. 2011-10-18 00:34:45 -04:00
Ryan C. Gordon
e7fb05cb0b 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
73f4a2a1fe Let iOS use OSAtomicCompareAndSwap32Barrier() if nothing else is available. 2011-10-16 03:02:46 -04:00
Ryan C. Gordon
535f1943d3 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
d9eb836912 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
f0c4d8739b 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
7533834caf Removed STL dependency in Android code. 2011-10-15 14:16:29 -07:00
Tim Angus
092332dd71 * 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
8f4ad957bf Implement GL_GetProcAddress() for Android.
Fixes Bugzilla #1290.

Thanks to Gabriel Jacobo for the patch!
2011-10-13 01:30:01 -04:00
Ryan C. Gordon
15426080c6 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