Ryan C. Gordon
d3c8a17a2d
Called method on wrong object in Android exception handler.
...
Fixes Bugzilla #1297 .
Thanks to jon @ rafkind for the patch!
2011-09-01 04:42:09 -04:00
Ryan C. Gordon
03425cf382
Removed unused variable.
2011-09-01 04:34:05 -04:00
Ryan C. Gordon
439009a9d5
Clean up any opened joysticks during SDL_JoystickQuit().
...
Otherwise, these leak memory and maybe operating system handles.
2011-09-01 04:25:15 -04:00
Ryan C. Gordon
370cdc709c
Automated merge with https://bitbucket.org/Markusk/sdl-gsoc
2011-08-29 13:17:07 -04:00
Tim Angus
edc8ca6ac0
* Fix many memory leaks in Android FS code
...
* Set SDL error string with Java exception details when one occurs
* Fix tabulation of SDLActivity::getContext
2011-08-26 13:11:53 +01:00
Ryan C. Gordon
1248146aa2
Removed the MAC_OS_X_VERSION_10_x macros from the 1.3 branch.
2011-08-25 03:11:28 -04:00
Ryan C. Gordon
d58d3cf9d0
Patched to compile on Windows.
2011-08-23 16:47:22 -04:00
Ryan C. Gordon
a52dac6020
Cleaned out functions deprecated in Mac OS X 10.6 SDK.
2011-08-23 15:17:44 -04:00
Ryan C. Gordon
043d6961da
Fixed wrong datatype for shaders and programs.
...
This is a pointer on Mac OS X, so it risked losing data in 64-bit builds.
2011-08-23 06:27:04 -04:00
Kees Bakker
1a888b5860
Split off SDL_uikitviewcontroller in its own module
2011-08-17 23:26:58 +02:00
Ryan C. Gordon
27c0f06736
Further XAudio2 build test cleanups.
2011-08-22 14:56:46 -04:00
Ryan C. Gordon
3bd23ad70f
Removed SDL_xaudio2.h ... no real need for this to be separate.
2011-08-22 14:37:45 -04:00
Ryan C. Gordon
8dddad9b87
Let XAudio2 target be removed from the build by removing it from SDL_config.h
2011-08-22 14:30:49 -04:00
Ryan C. Gordon
9ef6d797b4
Apple's C runtime has the non-const iconv(), too.
2011-08-22 14:25:11 -04:00
Ryan C. Gordon
1230f810bd
Fixed compiler warning on 64-bit builds.
2011-08-22 13:41:35 -04:00
Ryan C. Gordon
8948722528
RLE: Don't trash alpha channel in copy_32().
...
It was being set to (mask|value) instead of (value).
Thanks to li zhuo for the bug report!
2011-08-22 13:34:58 -04:00
Ryan C. Gordon
89b8d559fd
Apparently glXSwapIntervalEXT() _does_ return a value.
...
Revision 6 of the GLX_EXT_swap_control spec has a typo; the function
signature they list is void, but the docs talk about a return value, and the
glxext.h headers list "int".
2011-08-22 02:26:11 -04:00
Ryan C. Gordon
a13987a2cc
Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.3 branch.
...
Fixes Bugzilla #1254 .
Thanks to Thilo Schulz for the patch!
2011-08-21 12:24:27 -04:00
Ryan C. Gordon
979f801b08
Ported ALSA minimum-sample-count fix from 1.2 branch to 1.3.
2011-08-21 11:52:21 -04:00
Ryan C. Gordon
da15752375
Make sure XAudio2 is supported by the DirectX headers at compile time.
2011-08-21 02:35:13 -04:00
Kees Bakker
0495a4f9da
Convert a few TABs into spaces
2011-08-18 22:43:37 +02:00
Ryan C. Gordon
d71e865584
Patched to compile.
2011-08-15 02:51:13 -04:00
Sam Lantinga
f60d3a845a
Don't lose the icon surface if it's freed immediately after SDL_WM_SetIcon()
...
This is a memory leak, but we don't have a good place to free the icon surface a the moment.
2011-08-14 21:57:50 -04:00
Ryan C. Gordon
de42332c37
Patched to compile on Mac OS X.
2011-08-06 02:15:23 -04:00
Ryan C. Gordon
a82582941c
X11 touch handling fixed for one device (LPC32xx Touchscreen).
2011-08-05 00:55:29 -04:00
Ryan C. Gordon
b5dce54a48
Patched to compile on Linux.
...
(Grumble grumble, should have tested better after all the history editing...)
2011-08-05 00:48:56 -04:00
Ryan C. Gordon
968b82c8b8
Patched to compile.
2011-08-04 19:33:45 -04:00
Ryan C. Gordon
e57312411f
Removed some Windows endlines.
2011-08-04 01:36:23 -04:00
Ryan C. Gordon
6634d3d1fe
Merged Mac OS X and iOS audio targets.
2011-08-04 00:45:09 -04:00
Ryan C. Gordon
142fdca2c2
Removed no-op Deinitialize methods in audio drivers.
2011-07-26 14:20:22 -07:00
Ryan C. Gordon
9bcc29c934
Removed needless macros in various audio targets.
2011-07-26 14:18:00 -07:00
Ryan C. Gordon
78bf250a21
Cleaned up audio device detection. Cleared out a lot of cut-and-paste.
2011-08-04 00:31:11 -04:00
Ryan C. Gordon
854a2e9098
Implemented XAudio2 target for Windows (and Xbox360, theoretically!).
2011-08-04 01:07:09 -04:00
Ryan C. Gordon
4c406bc202
Cleaned up CoInitialize() politics on Windows.
2011-08-03 04:22:47 -04:00
Ryan C. Gordon
94fa3d973d
Added some FIXMEs.
2011-08-04 01:07:13 -04:00
Ryan C. Gordon
9391731cf9
Took out some more bitfields in the audio subsystem.
2011-07-22 16:09:13 -07:00
Ryan C. Gordon
7de8cc401e
Reworked Windows waveOut code.
...
Implemented multi-device support, changed name to "winmm".
2011-08-04 01:24:22 -04:00
Ryan C. Gordon
26705b7afc
Reworked Windows DirectSound code.
...
Now supports multiple devices, and uses DirectSound 8 instead of 5. Changed
name to "directsound" and renamed source directory.
2011-08-04 01:26:12 -04:00
Ryan C. Gordon
8b3e5696da
Removed /dev/dsp DMA audio target.
2011-07-24 03:37:13 -07:00
Ryan C. Gordon
b967eec1ab
Mark some QSA audio driver functions as static.
2011-07-26 13:42:34 -07:00
Ryan C. Gordon
4ef8847cc5
Allow Android platforms to read from .apk files via the RWOPS interface.
...
Fixes Bugzilla #1261 .
Thanks to Tim Angus for the patch!
2011-07-29 16:51:25 -04:00
Ryan C. Gordon
3fb89b23e8
Patched to compile (I hope).
2011-07-27 18:07:40 -04:00
Ryan C. Gordon
95dc99af0f
If we didn't create win32 window, restore its event procedure on destruction.
2011-07-25 15:03:42 -07:00
Ryan C. Gordon
632f5e5860
Removed comment questioning the code's correctness (the answer: it's correct).
2011-07-22 00:12:03 -07:00
Ryan C. Gordon
fa2029820d
Don't use a bitfield for this.
...
It pads out to an int anyhow, but causes code bloat as the compiler tries to
mask and shift for that specific bit.
2011-07-22 00:09:58 -07:00
Ryan C. Gordon
75d8b324e2
Work on systems without sa_sigaction.
2011-07-20 16:35:37 -07:00
Ryan C. Gordon
6e06033e19
Patched to compile on older GLX headers.
2011-07-18 14:55:24 -07:00
Ryan C. Gordon
c39a95c4c9
Added support for GLX_EXT_swap_control, and cleaned up some other extensions.
...
This allows the Nvidia Linux drivers to use SDL_GL_SetSwapInterval(0).
2011-07-18 14:34:19 -07:00
Ryan C. Gordon
903ae49a65
The SwapInterval APIs should fail without a current OpenGL context.
2011-07-18 14:31:37 -07:00
Ryan C. Gordon
b5e613302b
Record the new OpenGL context as current during SDL_GL_CreateContext().
2011-07-18 14:30:46 -07:00