Commit graph

3035 commits

Author SHA1 Message Date
Ryan C. Gordon
5df7568eec Further XAudio2 build test cleanups. 2011-08-22 14:56:46 -04:00
Ryan C. Gordon
6412a3147e Removed SDL_xaudio2.h ... no real need for this to be separate. 2011-08-22 14:37:45 -04:00
Ryan C. Gordon
023503370c 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
3b667bacd5 Apple's C runtime has the non-const iconv(), too. 2011-08-22 14:25:11 -04:00
Ryan C. Gordon
1f5750981e Fixed compiler warning on 64-bit builds. 2011-08-22 13:41:35 -04:00
Ryan C. Gordon
747072f8a3 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
08f49bd2d3 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
f9268ec876 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
98babc2004 Ported ALSA minimum-sample-count fix from 1.2 branch to 1.3. 2011-08-21 11:52:21 -04:00
Ryan C. Gordon
40480fb3c4 Make sure XAudio2 is supported by the DirectX headers at compile time.
--HG--
extra : rebase_source : a461903e0d9d4334a29cb0c9848a36f268d8f0e6
2011-08-21 02:35:13 -04:00
Kees Bakker
afc8e3d312 Convert a few TABs into spaces 2011-08-18 22:43:37 +02:00
Nathan Heisey
d7bd0b0425 Fixed some problems with switching to/from fullscreen 2011-08-17 13:31:18 +00:00
Ryan C. Gordon
531efe97f1 Patched to compile. 2011-08-15 02:51:13 -04:00
Sam Lantinga
3cc0d7d6e4 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
Nathan Heisey
23e3df144f Reduced SEGFAULT occurence on resize? 2011-08-12 16:58:54 +00:00
Nathan Heisey
eb58f97bd3 Fixed OpenGL library loading functions 2011-08-09 16:34:25 +00:00
Nathan Heisey
06dfd29b23 Some video fixes 2011-08-08 17:00:38 +00:00
Ryan C. Gordon
0463ea420b Patched to compile on Mac OS X. 2011-08-06 02:15:23 -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
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
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
Nathan Heisey
3c7c721663 Replaced window backbuffer with BBitmap 2011-08-03 06:22:33 +00:00
Nathan Heisey
2dda407120 Fixed minor rendering issues. 2011-08-03 05:09:36 +00:00
Nathan Heisey
2f9415199b Framebuffer code moved to SDL_bframebuffer.*, OpenGL support began 2011-07-30 18:26:13 +00:00
Nathan Heisey
41cbb17de7 Render thread partially corrected 2011-07-28 18:21:38 +00:00
Nathan Heisey
bf4cf18905 Moved draw code to a separate thread 2011-07-27 11:06:38 +00: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
Nathan Heisey
350e15ee9f Corrected keyboard input support 2011-07-26 17:48:40 +00:00
Nathan Heisey
8771f4019a Fixed mouse move problem 2011-07-26 11:38:20 +00:00
Nathan Heisey
7121f4e5ba Fixed seg fault on video quit 2011-07-26 10:13:34 +00:00
Nathan Heisey
20af8e0677 Variable name/debugging output changes 2011-07-25 16:46:55 +00:00
Nathan Heisey
96dd15dd3d Corrected framebuffer creation problem 2011-07-25 13:47:19 +00: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
8eb5a67761 Mark some QSA audio driver functions as static. 2011-07-26 13:42:34 -07: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
Nathan Heisey
ee8ee9d166 Corrected memory leak with rendering. 2011-07-22 16:54:23 +00:00
Nathan Heisey
8932a116a0 Drawing code works, but it flashes 2011-07-22 12:39:53 +00: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