Commit graph

4357 commits

Author SHA1 Message Date
Sam Lantinga
1724358663 Updated configure for new changes in configure.in 2011-08-06 01:21:24 -04:00
Ryan C. Gordon
7ab5cda6fc X11 touch handling fixed for one device (LPC32xx Touchscreen). 2011-08-05 00:55:29 -04:00
Ryan C. Gordon
961d8e70e6 More patches to compile. 2011-08-05 00:49:31 -04:00
Ryan C. Gordon
2c03d6f4e6 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
67740a37fa Patched to compile. 2011-08-04 19:33:45 -04:00
Ryan C. Gordon
e42ca42e76 Removed some Windows endlines. 2011-08-04 01:36:23 -04:00
Ryan C. Gordon
75b5258790 testmultiaudio.c needs to #include <stdio.h>. 2011-08-03 03:12:07 -04:00
Ryan C. Gordon
b2540abd8e Merged Mac OS X and iOS audio targets.
--HG--
rename : src/audio/macosx/SDL_coreaudio.c => src/audio/coreaudio/SDL_coreaudio.c
rename : src/audio/macosx/SDL_coreaudio.h => src/audio/coreaudio/SDL_coreaudio.h
2011-08-04 00:45:09 -04:00
Ryan C. Gordon
cd8da3097b Removed no-op Deinitialize methods in audio drivers. 2011-07-26 14:20:22 -07:00
Ryan C. Gordon
b4cf784f88 Removed needless macros in various audio targets. 2011-07-26 14:18:00 -07:00
Ryan C. Gordon
8e6153c36b Cleaned up audio device detection. Cleared out a lot of cut-and-paste. 2011-08-04 00:31:11 -04:00
Ryan C. Gordon
46bb3d8770 Implemented XAudio2 target for Windows (and Xbox360, theoretically!). 2011-08-04 01:07:09 -04:00
Ryan C. Gordon
8fa65eea5c Cleaned up CoInitialize() politics on Windows. 2011-08-03 04:22:47 -04:00
Ryan C. Gordon
0dea877a78 Added some FIXMEs. 2011-08-04 01:07:13 -04:00
Ryan C. Gordon
26f05bd076 Took out some more bitfields in the audio subsystem. 2011-07-22 16:09:13 -07:00
Ryan C. Gordon
6bd5c1b002 Reworked Windows waveOut code.
Implemented multi-device support, changed name to "winmm".

--HG--
rename : src/audio/windib/SDL_dibaudio.h => src/audio/winmm/SDL_winmm.h
2011-08-04 01:24:22 -04:00
Ryan C. Gordon
ac93bd6e55 Reworked Windows DirectSound code.
Now supports multiple devices, and uses DirectSound 8 instead of 5. Changed
name to "directsound" and renamed source directory.

--HG--
rename : src/audio/windx5/SDL_dx5audio.c => src/audio/directsound/SDL_directsound.c
rename : src/audio/windx5/SDL_dx5audio.h => src/audio/directsound/SDL_directsound.h
rename : src/audio/windx5/directx.h => src/audio/directsound/directx.h
2011-08-04 01:26:12 -04:00
Ryan C. Gordon
55419dbf19 Removed /dev/dsp DMA audio target. 2011-07-24 03:37:13 -07:00
Ryan C. Gordon
068586f3ee Removed VisualCE project files. 2011-07-23 00:22:19 -07:00
Ryan C. Gordon
8eb5a67761 Mark some QSA audio driver functions as static. 2011-07-26 13:42:34 -07:00
Ryan C. Gordon
77f25419aa Apple uses a void* for GLhandleARB, not an unsigned int. 2011-08-04 00:46:27 -04:00
Ryan C. Gordon
247346d526 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
58faae483b Patched to compile (I hope). 2011-07-27 18:07:40 -04:00
Ryan C. Gordon
d8d485370c If we didn't create win32 window, restore its event procedure on destruction. 2011-07-25 15:03:42 -07:00
Ryan C. Gordon
f7d9b29115 Removed comment questioning the code's correctness (the answer: it's correct). 2011-07-22 00:12:03 -07:00
Ryan C. Gordon
a5d345e374 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
4b70200bf8 Work on systems without sa_sigaction. 2011-07-20 16:35:37 -07:00
Ryan C. Gordon
1a862ae6d3 Patched to compile on older GLX headers. 2011-07-18 14:55:24 -07:00
Ryan C. Gordon
93d2b83299 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
d05ada5235 The SwapInterval APIs should fail without a current OpenGL context. 2011-07-18 14:31:37 -07:00
Ryan C. Gordon
b77354e7d9 Record the new OpenGL context as current during SDL_GL_CreateContext(). 2011-07-18 14:30:46 -07:00
Dimitris Zenios
b43aca329d Fixes a bug in SDL_UpdateTexture when using SDL_RENDERER_SOFTWARE and texture access is SDL_TEXTUREACCESS_STATIC 2011-06-10 12:13:06 +03:00
Ryan C. Gordon
2fdcb7bdfc Fixed memory leak in SDL_DestroyRenderer.
Fixes Bugzilla #1219.

Thanks to Dimitris Zenios for the patch!
2011-07-16 14:59:12 -07:00
Ryan C. Gordon
0b3c783570 Cocoa: Update the current GL context when its window moves or resizes.
According to the NSOpenGLContext docs, you need to do this, and we were
 previously masking the need in the SDL_GL_MakeCurrent() implementation.
2011-07-16 11:52:09 -07:00
Ryan C. Gordon
34edc62460 Turn SDL_GL_MakeCurrent() into a no-op if setting the same context twice. 2011-07-15 17:05:32 -07:00
Ryan C. Gordon
c4348f44f7 Linux: Search a smaller set of potential joystick axes.
Newer kernels seem to report bogus axes in the higher ranges, for example
 with a standard PlayStation 3 controller plugged in via USB.
2011-07-13 17:38:09 -07:00
Ryan C. Gordon
1fc724be50 Properly set up default resolutions.
Fixes Bugzilla #1191.

Thanks to Jeremy Jurksztowicz for the fix!
2011-07-05 22:05:56 -04:00
Nathan Heisey
dfe639930e Implemented pthread spinlocks. 2011-06-22 10:33:48 +00:00
Tim Angus
d39b9dd978 * Add missing file SDL_hints_c.h 2011-06-15 10:28:01 +01:00
Tim Angus
2f0bec3220 * SDL_IOS_IDLE_TIMER_DISABLED hint 2011-06-10 14:23:36 +01:00
Tim Angus
a36a856bf9 * SDL_IOS_ORIENTATIONS hint 2011-06-10 14:23:24 +01:00
Sam Lantinga
94e1b6970f Make SDL_QuitRequested() return an SDL_bool 2011-06-12 12:23:39 -04:00
Ryan C. Gordon
c3ab04563b Fixed gcc warnings for apps using SDL headers with -Wundef flag.
Fixes Bugzilla #1216.

Thanks to Dimitris Zenios for the patch!
2011-06-06 12:20:04 -04:00
Ryan C. Gordon
8b1cf3db98 Updated configure.in to be compatible with autoconf 2.67.
Still works with autoconf 2.61 (what ships with Xcode 3).

Thanks to Frank Zago for this patch.
2011-06-04 15:26:02 -04:00
Ryan C. Gordon
590a060f3b Assert code's stdio interface was reading from the wrong variable.
Thanks to Frank Zago for the catch.
2011-06-03 16:03:10 -04:00
Sam Lantinga
b62273437c Clarified SDL_GetWindowSurface() documentation
Matthew Orlando to Sam

Someone asked in IRC whether they should free the surface from SDL_GetWindowSurface. The doc comment is a bit vague so i checked the code and revised the comment.
2011-04-22 09:06:29 -07:00
Sam Lantinga
401e97ad0c Fixed so SDL_quit.h doesn't require SDL_compat.h 2011-04-21 09:50:29 -07:00
Ryan C. Gordon
f2b3dc5a5a Make assert dialog work on Cocoa target even if we haven't initialized video.
--HG--
extra : rebase_source : 04ec77f4a3a3f61fdb1255c4fc3b8c88efd68ffb
2011-04-20 15:14:18 -04:00
Dennis Cappendijk
36d698513a Debug win 32 settings was wrongfully set to build the Release 32bit version. 2011-04-20 11:25:01 +02:00
Sam Lantinga
d4637e7a65 Added test of the assertion reporting system 2011-04-19 11:41:45 -07:00