Commit Graph

3151 Commits

Author SHA1 Message Date
Ryan C. Gordon
0c92f2de0b Call SDL_Init() before SDL_GetNumAudioDrivers().
Not sure why that was reversed.
2010-01-10 19:09:57 +00:00
Ryan C. Gordon
9b0b122375 Merged r4874:4875 from branches/SDL-1.2: testwm keyboard debug output. 2010-01-10 18:25:04 +00:00
Ryan C. Gordon
7b51107391 Merged r3576:3577 from branches/SDL-1.2: X11 Xlibint.h include fixes. 2010-01-10 18:19:35 +00:00
Sam Lantinga
aeb3d31334 Updated 1.2 revisions that need to be revisited 2010-01-10 09:16:46 +00:00
Ryan C. Gordon
513a51438f Revert r5463: Alpha blend "correctness" patch.
Sam says:
"We should revert this. I applied it in 1.3 and then fixed it for correctness."
2010-01-10 08:59:25 +00:00
Ryan C. Gordon
0a3afaa588 Merged r5194:5195 from branches/SDL-1.2: coldfire cpu arch support. 2010-01-10 08:21:19 +00:00
Ryan C. Gordon
d93ecf6a7c Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix. 2010-01-10 08:15:25 +00:00
Ryan C. Gordon
7d6532fb7a Merged r5070:5071 from branches/SDL-1.2: forcibly disable buggy MMX mixers. 2010-01-10 07:48:14 +00:00
Ryan C. Gordon
fe2f3cf720 Merged r4991:5154 from branches/SDL-1.2/src/audio/alsa: many 1.2.14 ALSA fixes. 2010-01-10 07:40:12 +00:00
Ryan C. Gordon
2c3d75ad93 Merged r5016:5017 from branches/SDL-1.2: PS2 DMA mapping fix.
I assume this video target is slated for removal in 1.3, but I merged this,
just in case.
2010-01-10 06:32:41 +00:00
Ryan C. Gordon
23a7f67e85 Merged r4992:4993 from branches/SDL-1.2: increased alpha blend accuracy. 2010-01-10 06:18:39 +00:00
Ryan C. Gordon
d3fddfb2b4 Merged r4866:4867 from branches/SDL-1.2: 64-bit Mac OS X 10.5 SDK fix. 2010-01-10 05:39:46 +00:00
Ryan C. Gordon
609eb81e23 Reverted r5460 ... this was merged from 1.2, but was later reverted there. 2010-01-10 05:06:03 +00:00
Ryan C. Gordon
b7bf9f415e Merged r4784:4785 from branches/SDL-1.2: Mac OS X linker command line fixes. 2010-01-10 04:42:45 +00:00
Sam Lantinga
f8378c78bc Made the comment more readable 2010-01-07 04:39:44 +00:00
Sam Lantinga
53023c5ff5 The OS/2 support has been removed, so we don't need this now. 2010-01-07 04:38:58 +00:00
Ryan C. Gordon
0833108f35 Removed comment referring to previously-removed CD-ROM subsystem. 2010-01-06 21:04:11 +00:00
Ryan C. Gordon
1fad5ac7c1 Merged r4717:4718 from branches/SDL-1.2: minor OS/2 DECLSPEC/SDLCALL fixes.
I reworked this a little. The 1.2 branch isn't really very elegant about this.
2010-01-06 20:58:03 +00:00
Ryan C. Gordon
8d46b44026 Merged r4713:4714 from branches/SDL-1.2: CoreAudio 64-bit & Snow Leopard fixes. 2010-01-06 20:31:21 +00:00
Ryan C. Gordon
4b5c236a0d Merged r4710:4711 from branches/SDL-1.2: Mac OS X SDL_stdlib qsort build fixes. 2010-01-06 20:17:35 +00:00
Ryan C. Gordon
b4ed725c0b Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value test fix. 2010-01-06 07:45:58 +00:00
Ryan C. Gordon
d3e020766d Merged r4412:4413 from branches/SDL-1.2: rwops documentation fix. 2010-01-06 07:39:35 +00:00
Sam Lantinga
4e5f91ec7c Removed the obsolete SDL 1.2 GAPI driver 2010-01-06 07:39:09 +00:00
Sam Lantinga
6d445389ca I can't compile this, but it should be updated for the new rendering API now. 2010-01-06 07:37:15 +00:00
Ryan C. Gordon
af25176933 Merged r4121:4122 from branches/SDL-1.2: more double-free fixes. 2010-01-06 07:34:20 +00:00
Ryan C. Gordon
67bd8e2549 Merged r4121:4122 from branches/SDL-1.2: win32 joystick double-free fix. 2010-01-06 07:26:49 +00:00
Ryan C. Gordon
b2a30cdcb1 Merged r3808:3809 from branches/SDL-1.2: install_name_tool fix for fatbuild.sh. 2010-01-06 06:44:23 +00:00
Ryan C. Gordon
f498df4891 Merged r3787:3788 from branches/SDL-1.2: better failures for joystick opening. 2010-01-06 06:40:16 +00:00
Sam Lantinga
2ce50c80a2 Fixed GL_RenderWritePixels() - thanks Ryan! 2010-01-06 06:12:01 +00:00
Sam Lantinga
8eaf7c78b9 Fixed bug #924
Only use sysconf if _SC_NPROCESSORS_ONLN is available.  Fortunately the case for this was Mac OS X 10.4, which has sysctlbyname()
2010-01-06 04:33:31 +00:00
Sam Lantinga
4386417754 We're using GNU recursive mutexes 2009-12-30 19:48:23 +00:00
Sam Lantinga
dca29a1b79 Fixed bug #915
GNU-isms should be avoided wherever possible for portability, please avoid the use of GNU-isms in your code, this may be problematic when using this library in projects which use non-GNU-compliant compilers.
2009-12-30 19:38:08 +00:00
Sam Lantinga
25ddd3c390 Removed in the interest of actually finishing 1.3. :)
They can be done later, either by me or by someone else.
2009-12-30 19:10:41 +00:00
Ryan C. Gordon
d3cffb3167 Fixed buffer overflows in resamplers.
I'm not confident this is a complete fix, but I'm not confident the current
 resamplers are really worth keeping at all, either.
2009-12-28 08:28:24 +00:00
Sam Lantinga
6491208ef7 Added missing include for stdio 2009-12-24 21:00:42 +00:00
Sam Lantinga
4c1edf5a4e Updated to include new files 2009-12-24 19:18:41 +00:00
Sam Lantinga
a29c410b7e Updated to compile on Windows 2009-12-24 19:18:05 +00:00
Sam Lantinga
5837d39cf6 Added rectangle test 2009-12-24 19:16:08 +00:00
Sam Lantinga
d3a2d0d8b7 Fixed bug #912
SDL_MasksToPixelFormatEnum() wasn't correctly returning RGB24 formats
2009-12-23 06:39:18 +00:00
Sam Lantinga
c3629ff44a Added SDL_RenderClear() as a fast method of clearing the screen to the drawing color.
Renamed SDL_RenderPoint() and SDL_RenderLine() to SDL_RenderDrawPoint() and SDL_RenderDrawLine().
Added API for rectangle drawing (as opposed to filling)
Added placeholder API functions for circles and ellipses ... I'm not sure whether these will stay.
Optimized software line drawing quite a bit.
Added support for Wu's anti-aliased line drawing, currently disabled by default.
2009-12-23 01:55:00 +00:00
Sam Lantinga
787e704e24 Make it possible to slim SDL down quite a bit for people who just want OpenGL 2009-12-18 08:19:18 +00:00
Sam Lantinga
1d00894214 Added SDL_DrawRect(), SDL_DrawRects(), SDL_BlendRect() and SDL_BlendRects()
Fixed line drawing so when blending a sequence of lines there are no overlapping pixels drawn.
2009-12-18 07:41:59 +00:00
Sam Lantinga
786e01f737 In the process of adding rectangle drawing 2009-12-18 07:03:09 +00:00
Sam Lantinga
5ba602a897 Fixed compile error on Windows. 2009-12-17 07:47:03 +00:00
Sam Lantinga
ab09986ef7 Updated test code to use SDL_setenv() 2009-12-17 07:46:13 +00:00
Sam Lantinga
3fc0e26901 Fixed crash in joystick handling code. Newer 2.6 kernels add an additional 'resolution' field to input_absinfo. Note that we don't use that structure since we want to have enough space for the values even when building with an older kernel. 2009-12-17 07:22:48 +00:00
Sam Lantinga
ba9b7bf6ff Fixed bug #841
The redefinition of M_PI is no longer necessary...
2009-12-17 06:08:20 +00:00
Sam Lantinga
d7affbbbaa Fixed bug #843
Fixed colorkey comparison for 24 bits-per-pixel modes
2009-12-17 05:57:37 +00:00
Sam Lantinga
be4c0844af Implemented 64-bit version of cpuid code 2009-12-17 04:01:29 +00:00
Sam Lantinga
4a157f0629 Added support for querying the number of CPUs available on Linux. This also happens to work on Mac OS X. 2009-12-17 03:04:04 +00:00