Commit graph

3097 commits

Author SHA1 Message Date
Sam Lantinga
51dad9cf5e GIMP wrote bmp files in RGBX format. Huh. 2011-11-09 22:53:44 -05:00
Sam Lantinga
3d98438877 Fixed creating a fullscreen window on iOS 2011-11-09 02:35:49 -05:00
Ryan C. Gordon
922a04d060 Fixed compiler warnings for uninitialized variables. 2011-11-09 00:27:44 -05:00
Ryan C. Gordon
9bfdb9ee33 Fixed uninitialized variable. 2011-11-08 19:45:41 -05:00
Ryan C. Gordon
311a3e9453 Merge from https://bitbucket.org/keestux/sdl ... SDL_gesture code cleanup. 2011-11-08 16:24:02 -05:00
Sam Lantinga
a61775dde5 To answer the FIXME, no, we shouldn't force this. The fullscreen flag implies borderless behavior even though the flag isn't set on the window (in case fullscreen is toggled) 2011-11-08 00:17:41 -05:00
Sam Lantinga
c9bb3c7072 The iOS driver sets the fullscreen and shown flags on the window during creation, so we need the mode code to be aware of that, since none of the other fullscreen/shown code paths get run.
FIXME: Maybe we need a better way of detecting that?
2011-11-08 00:03:54 -05:00
Sam Lantinga
e2d1d0aec3 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
918d8540ea 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
c5b4e5f63e 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
352caf548a Need to send a key up, silly. 2011-11-07 02:24:52 -05:00
Sam Lantinga
0a82b3eefe Fixed double-free in the shader cache at shutdown 2011-11-07 00:45:13 -05:00
Ryan C. Gordon
a5bb3d3f60 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
4220f125c3 Fixed some preprocessor mistakes introduced in iOS project cleanup. 2011-11-03 11:51:47 -04:00
Ryan C. Gordon
9f84d0e002 Fix crash on X servers without UTF-8 support. 2011-10-31 23:37:57 -04:00
Sam Lantinga
ad2a21d404 Lots of fixes importing SDL source wholesale into a new iOS project
--HG--
rename : src/libm/math.h => src/libm/math_libm.h
2011-10-31 05:56:58 -04:00
Sam Lantinga
e112859e94 This code works for OpenGL ES 1.1 as well! :) 2011-10-31 03:06:32 -04:00
Sam Lantinga
fcb2aa5617 Implemented RenderReadPixels for the OpenGL ES 2.0 renderer. 2011-10-31 02:55:21 -04:00
Sam Lantinga
0c041192f6 SDL_ConvertPixels() returns 0 on success 2011-10-31 02:44:21 -04:00
Sam Lantinga
ec5e765da6 Fixed warnings on iOS 2011-10-31 01:59:54 -04:00
Andreas Schiffler
98f2e298fc Fix sdl-haiku buildbot compiler warnings 2011-10-30 00:19:13 -07:00
Andreas Schiffler
c5e05365c6 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
Ryan C. Gordon
cd6cd13137 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
e66bcd9efe 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
c6f4eaaf06 Removed tabs and DOS endlines from SDL_blit_copy.c ... 2011-10-29 00:57:45 -04:00
Kees Bakker
8d5ba0eb26 Type of SDL_GestureTouch.id is SDL_TouchID (only for SDL_gesture.c internal) 2011-10-27 23:04:50 +02:00
Kees Bakker
9e6ee9e79a Correct usage of SDL_AddDollarGesture (return value >= 0 on success) 2011-10-27 22:53:28 +02:00
Kees Bakker
9f6e4ab9ab Refactor SDL_AddDollarGesture 2011-10-27 22:52:03 +02:00
Kees Bakker
3c27fa1eff Reformat SDL_gesture.c (part 2, space after keywords) 2011-10-27 22:23:09 +02:00
Kees Bakker
428e61a43e Reformat SDL_gesture.c (part 1, reindent using Emacs, c-basic-offset 4) 2011-10-27 21:26:44 +02: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
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
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
bba4029d9b Removed STL dependency in Android code. 2011-10-15 14:16:29 -07:00