Commit graph

4959 commits

Author SHA1 Message Date
Sam Lantinga
aa816459ab Fix memory leaks in X11_CreateDevice error paths
Patch contributed by Andre Heider
2012-07-18 14:48:32 -07:00
Sam Lantinga
a00f1423be Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD
Brad Smith 2012-07-18 13:43:34 PDT
autoconf patch to fix X dynamic loading of libraries on OpenBSD
2012-07-18 13:57:39 -07:00
Sam Lantinga
9844cacdd7 Fixed bug 1434 - Add AltiVec detection for OpenBSD/powerpc
Brad Smith 2012-02-29 19:31:46 PST

The attached patch adds AltiVec detection for OpenBSD/powerpc. Please apply the
patch to both 2.0 and 1.2.
2012-07-18 13:06:38 -07:00
Sam Lantinga
529470a6c5 Updated the generic event check to try to compile instead of just look for library runtime function (fixes compiling on older Mac OS X SDKs) 2012-07-18 10:47:41 -07:00
Ryan C. Gordon
0e49fa682a Patched to compile on FreeBSD 8.2. 2012-07-11 22:20:02 -04:00
Ryan C. Gordon
e3e3adf168 Removed unused variable to silence compiler warning. 2012-07-11 22:04:19 -04:00
Ryan C. Gordon
1188abbae2 Patched to compile on Windows with VS2008 and VS2010. 2012-07-11 20:56:15 -04:00
Ryan C. Gordon
2096895aed Patched to compile on Mac OS X with Xcode (Unix configure already worked). 2012-07-11 20:40:02 -04:00
Ryan C. Gordon
81bf162798 Patched to compile on PowerPC Mac OS X. 2012-07-11 20:20:04 -04:00
Sam Lantinga
6590f3daa3 Fixed bug 1540: SDL 2.0 won't link on Visual Studio 2012 RC for x64
Thanks to Marek Pokorny for tracking this down and providing a fix.
2012-07-11 08:51:16 -04:00
Gabriel Jacobo
8723c73510 Fixes #1422, removes global JNI Env, uses per thread copies, adds thread auto detaching. 2012-07-09 18:08:06 -03:00
Sam Lantinga
7b6f9ccd63 Removed unneeded audio buffer memset() for consistent behavior on all platforms. 2012-07-05 12:16:44 -04:00
Sam Lantinga
8533068f54 Marcus von Appen fixed bug 1535: SDL_UpdateWindowRects() SIGSEGV on X11 with out-of-bound rects
Using SDL_UpdateWindowRects () with SDL_Rect instances, that do not clip
to the bounds of the SDL_Window, causes a BadValue error on X11, if shared
memory is enabled:

X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  142 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
  Value in failed request:  0x5
  Serial number of failed request:  67
  Current serial number in output stream:  70

Attached is a test program to recreate the behaviour along with a simple
patch for SDL_x11framebuffer.c, which reduces the rect area to the window
bounds.

I am not sure, if XPutImage() is more robust here, so I applied it to the
non-shared memory version, too.
2012-07-05 07:26:18 -04:00
Sam Lantinga
c7a5aa5128 Patrick Baggett implemented relative mouse mode on Win32
Here is my first rough attempt. "testrelative" feels right to me, but I'd like it someone else tested this, especially compared to Linux/OSX. The "Ctrl+r" to switch between relative and normal mouse movements seems to work flawlessly. With relative mouse movement, the only way to change focus is via keyboard. I'm not sure if that is the correct approach, but that would seem to be the most useful mode for games. Still, if my assumption is wrong, I can fix that no problem.
2012-07-03 23:52:02 -04:00
Sam Lantinga
540577559f Vittorio Giovara fixed bug 1528: move hint registration from SDLUikitAppDelegate
When subclassing SDLUikitAppDelegate you usually override the -postFinishLaunch
method so that you can (for example) call a different function than SDL_main.

As it is now, however, overriding -postFinishLaunch will bar out the
SDL_SetHint for the idle timer. Attached a simple patch the moves the hint
callback to the -application:didiFinishLaunchingWithOptions:
2012-07-02 08:37:48 -04:00
Sam Lantinga
4a7b7a910b Marcus von Appen fixed bug 1530: X11 touch initialisation does not check its file handles 2012-07-02 08:33:10 -04:00
Sam Lantinga
655622dc62 Disable the SDL event pump after the SDL main routine returns, since events will be dispatched by the Cocoa event loop. 2012-06-25 11:10:34 -04:00
Sam Lantinga
909cf0f0b4 Added SDL_system.h to the various projects 2012-06-23 06:46:06 -04:00
Gabriel Jacobo
7a1361b538 Fix Android's SDLActivity for devices that may send more than one surfaceChanged
event in a row (ie, the Kindle Fire)
2012-06-24 21:10:17 -03:00
Sam Lantinga
a3161ce5ae Fix SDL_SetWindowSize with X11 non-RESIZABLE windows, patch by Pierre-Loup. 2012-06-22 23:31:22 -04:00
Sam Lantinga
a3bf8f0c71 Created a header file for system dependent API functions, and added SDL_iPhoneSetAnimationCallback() 2012-06-22 19:19:18 -04:00
Sam Lantinga
6cd1ae105e Fixed orientation and color when rendering to texture 2012-06-22 11:38:49 -04:00
Gabriel Jacobo
e064340717 Fixes #1524, improved xinput2 test 2012-06-21 14:01:47 -03:00
Gabriel Jacobo
707a4cc1fa Automated tests fixes 2012-06-21 12:12:11 -03:00
Sam Lantinga
094f01bc9e Updated Mac OS X and iOS projects 2012-06-21 10:41:25 -04:00
Gabriel Jacobo
6ef1aefc05 Fixes #1523 by removing inconsistent use of texture->access 2012-06-21 11:16:14 -03:00
Sam Lantinga
6b9b78a899 Fixed issue with tiling window managers (bug 1246)
Patch contributed by Driedfruit - thanks!
2012-06-21 09:58:22 -04:00
Gabriel Jacobo
28f32887a1 Fixes #1519, adds initialization to Android RWops internal variables. 2012-06-20 11:25:40 -03:00
Gabriel Jacobo
484aaf27a8 small improvements in the iosbuild.sh script 2012-06-19 20:16:45 -03:00
Gabriel Jacobo
13d2215157 Adds a simple command line utility (iosbuild.sh) to create iOS binaries for armv6, armv7 and i386 2012-06-19 18:25:04 -03:00
Sam Lantinga
beb1db9b5b Fixed compiling with Visual Studio 2012-06-19 13:50:14 -04:00
Gabriel Jacobo
1d3f4c2eca Fixes #1522, improved Xinerama / Twinview support 2012-06-19 14:19:05 -03:00
Gabriel Jacobo
8fbd4fb107 Fixes #1422, restores GL context automatically under Android 2012-06-19 13:57:42 -03:00
Sam Lantinga
b2b4372f55 Added command-line cross-compile support for iOS - Gabriel Jacobo will be adding iosbuild.sh and documentation for the process. 2012-06-19 12:29:53 -04:00
Sam Lantinga
c804678260 Ignore SVN metadata 2012-06-04 12:31:14 -04:00
Gabriel Jacobo
a9dfd741a4 Actually functional, hopefully!, Xext test 2012-06-03 17:34:18 -03:00
Ryan C. Gordon
110c52e2b4 Fix from 1.2 branch: ignore bogus Linux evdev joystick axes. 2012-06-03 05:05:34 -04:00
Sam Lantinga
924fe8e26e Fixed SDL_config.h build include path 2012-06-01 20:31:50 -04:00
Sam Lantinga
241a11738e Better test for Xext headers 2012-06-01 20:06:48 -04:00
Sam Lantinga
926b27e24a Fixed includes for Objective C 2012-06-01 20:05:38 -04:00
Gabriel Jacobo
17bdcc6e8e RenderCopyEx,rotation and flipping for all hardware/software backends (#1308) 2012-06-01 19:51:08 -03:00
Gabriel Jacobo
5791b11bc4 Fix test for Xext headers (bug 1498), now it should fail properly in systems with the old headers. 2012-06-01 19:42:15 -03:00
Dimitris Zenios
f39fe05937 1.Fixed a memory leak inside XInput2 code
2.Replaced XKeycodeToKeysym with XkbKeycodeToKeysym since XKeycodeToKeysym is deprecated in newer X11 version
3.Rewrote testime.c since it was disabled after SDL_compat.c removal
4.Take into account common arguments also in testrelative.c
2012-05-31 19:23:30 +03:00
Sam Lantinga
5c45be466b Updated with new configure.in changes 2012-05-31 09:06:47 -04:00
Dimitris Zenios
497b8deec4 1.Moved all xinput2 functionality to its own file
2.Implement touch events using Xinput2.Leave evtouch as a fallback when xinput2 is not supported
2012-05-31 13:37:02 +03:00
Sam Lantinga
e2bd76bff4 Updated iOS project to SDL 2.0 2012-05-30 15:21:13 -04:00
Sam Lantinga
0dbd4213ad Fixed define for consistency 2012-05-30 11:45:09 -04:00
Sam Lantinga
d558e90692 Fixed compile error with both new and old Xext headers (bug 1498) 2012-05-30 11:44:57 -04:00
Sam Lantinga
e9df7f2d7b Fixed compile error 2012-05-30 11:43:33 -04:00
Sam Lantinga
6accd81680 Initial support for XInput2 by Dimitris Zenios
1.initial work on XInput2 support
2.Implemented relative mouse motion when XInput2 is enabled
3.Created a test app to test relative mouse motion
4.Fixed Bug #1498
2012-05-30 11:25:35 -04:00