Commit Graph

3234 Commits

Author SHA1 Message Date
Ryan C. Gordon
3876de9f47 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404369
2010-01-06 20:58:03 +00:00
Ryan C. Gordon
8fbed4b846 Merged r4713:4714 from branches/SDL-1.2: CoreAudio 64-bit & Snow Leopard fixes.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404368
2010-01-06 20:31:21 +00:00
Ryan C. Gordon
40e8b69061 Merged r4710:4711 from branches/SDL-1.2: Mac OS X SDL_stdlib qsort build fixes.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404367
2010-01-06 20:17:35 +00:00
Ryan C. Gordon
4f75dd5505 Merged r4433:4434 from branches/SDL-1.2: fbcon fgets() return value test fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404366
2010-01-06 07:45:58 +00:00
Ryan C. Gordon
65a38589ba Merged r4412:4413 from branches/SDL-1.2: rwops documentation fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404365
2010-01-06 07:39:35 +00:00
Sam Lantinga
63e191d64d Removed the obsolete SDL 1.2 GAPI driver
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404364
2010-01-06 07:39:09 +00:00
Sam Lantinga
bdb0253ca9 I can't compile this, but it should be updated for the new rendering API now.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404363
2010-01-06 07:37:15 +00:00
Ryan C. Gordon
26e749b7df Merged r4121:4122 from branches/SDL-1.2: more double-free fixes.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404362
2010-01-06 07:34:20 +00:00
Ryan C. Gordon
3617a04d58 Merged r4121:4122 from branches/SDL-1.2: win32 joystick double-free fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404361
2010-01-06 07:26:49 +00:00
Ryan C. Gordon
4ab9267d2d Merged r3808:3809 from branches/SDL-1.2: install_name_tool fix for fatbuild.sh.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404360
2010-01-06 06:44:23 +00:00
Ryan C. Gordon
516aaa5d6c Merged r3787:3788 from branches/SDL-1.2: better failures for joystick opening.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404358
2010-01-06 06:40:16 +00:00
Sam Lantinga
9a2b0cfb61 Fixed GL_RenderWritePixels() - thanks Ryan!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404357
2010-01-06 06:12:01 +00:00
Sam Lantinga
f643e8c798 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()

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404356
2010-01-06 04:33:31 +00:00
Sam Lantinga
f1255da8b2 We're using GNU recursive mutexes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404355
2009-12-30 19:48:23 +00:00
Sam Lantinga
eca7769600 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404354
2009-12-30 19:38:08 +00:00
Sam Lantinga
b9702243c7 Removed in the interest of actually finishing 1.3. :)
They can be done later, either by me or by someone else.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404353
2009-12-30 19:10:41 +00:00
Ryan C. Gordon
4d3b6eafc8 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404352
2009-12-28 08:28:24 +00:00
Sam Lantinga
1411a41ebd Added missing include for stdio
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404351
2009-12-24 21:00:42 +00:00
Sam Lantinga
3a87e3f645 Updated to include new files
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404350
2009-12-24 19:18:41 +00:00
Sam Lantinga
b393d088e8 Updated to compile on Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404349
2009-12-24 19:18:05 +00:00
Sam Lantinga
9c7cbdcbe5 Added rectangle test
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404348
2009-12-24 19:16:08 +00:00
Sam Lantinga
87672bbcfa Fixed bug #912
SDL_MasksToPixelFormatEnum() wasn't correctly returning RGB24 formats

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404347
2009-12-23 06:39:18 +00:00
Sam Lantinga
6da163ab81 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404346
2009-12-23 01:55:00 +00:00
Sam Lantinga
d45158ea85 Make it possible to slim SDL down quite a bit for people who just want OpenGL
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404345
2009-12-18 08:19:18 +00:00
Sam Lantinga
2b04928c0e 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404344
2009-12-18 07:41:59 +00:00
Sam Lantinga
e4c73114dc In the process of adding rectangle drawing
--HG--
rename : src/video/SDL_blendrect.c => src/video/SDL_blendfillrect.c
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404343
2009-12-18 07:03:09 +00:00
Sam Lantinga
c7fe958b6e Fixed compile error on Windows.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404341
2009-12-17 07:47:03 +00:00
Sam Lantinga
0833d1cda2 Updated test code to use SDL_setenv()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404340
2009-12-17 07:46:13 +00:00
Sam Lantinga
a9012609d3 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.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404339
2009-12-17 07:22:48 +00:00
Sam Lantinga
b634dea37a Fixed bug #841
The redefinition of M_PI is no longer necessary...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404338
2009-12-17 06:08:20 +00:00
Sam Lantinga
8df92cace1 Fixed bug #843
Fixed colorkey comparison for 24 bits-per-pixel modes

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404337
2009-12-17 05:57:37 +00:00
Sam Lantinga
8c0b853255 Implemented 64-bit version of cpuid code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404336
2009-12-17 04:01:29 +00:00
Sam Lantinga
0624fd8333 Added support for querying the number of CPUs available on Linux. This also happens to work on Mac OS X.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404335
2009-12-17 03:04:04 +00:00
Ryan C. Gordon
8b304825b5 Initial band-aids on SDL_GetMouseState() API breakage. More work to come.
Fixes Bugzilla #758.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404334
2009-12-16 19:50:51 +00:00
Sam Lantinga
691ee6f7c0 Fixed cpuid assembly to work on PIC code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404333
2009-12-16 16:42:04 +00:00
Sam Lantinga
c825464c2f Allocate memory only if we're going to overwrite an environment variable
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404332
2009-12-16 16:08:17 +00:00
Ryan C. Gordon
510c961476 Updated svn:ignore.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404331
2009-12-16 11:03:38 +00:00
Ryan C. Gordon
791f5dbce4 Implemented SDL_setenv(), moved SDL_putenv() to compat.
Fixes Bugzilla #779.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404330
2009-12-16 10:59:51 +00:00
Sam Lantinga
034bfdf70d Implemented Windows version of SDL_GetCPUCount()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404329
2009-12-16 08:17:05 +00:00
Sam Lantinga
29601c280b Added SDL_GetCPUCount() to see how many cores are available.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404328
2009-12-16 06:53:53 +00:00
Sam Lantinga
3f0f9188ed Fixed bug #741
The thread ID is an unsigned long so it can hold pthread_t so people can do naughty things with it.

I'm going to be adding additional useful thread API functions, but this should prevent crashes in people's existing code on 64-bit architectures.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404327
2009-12-16 04:48:11 +00:00
Sam Lantinga
83fbb6981f Fixed bug #736
Don't use the SSE cache instruction in MMX code if SSE isn't available. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404326
2009-12-16 03:02:31 +00:00
Sam Lantinga
777b877a72 Added testfill to test raw fill performance
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404325
2009-12-16 02:08:59 +00:00
Sam Lantinga
ad28ede924 Nuffin'
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404324
2009-12-16 01:19:58 +00:00
Sam Lantinga
62991bd546 Fixed bug #685
Added missing keysym shortcuts

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404323
2009-12-16 01:06:48 +00:00
Sam Lantinga
21ee5c056f Fixed bug #666
Don't let the event queue overflow with resize events

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404322
2009-12-16 00:55:33 +00:00
Sam Lantinga
1ca4e2cee3 Fixed bug #642
Gerry JJ      2008-11-09 02:11:49 PST

The SDL_MouseMotionEvent struct has a field named "tilt" (currently marked "for
future use"), for tablet stylus tilt information.  However, one value is not
enough for this, as tilt is two-dimensional.  Reserving only one field for
future use is no good when you're going to need two, so there should be two
fields, tilt_x and tilt_y.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404321
2009-12-16 00:44:53 +00:00
Sam Lantinga
240b5fcaab Default to allow either accelerated or not
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404320
2009-12-15 20:53:09 +00:00
Sam Lantinga
fe2b42f86c OpenGL hardware acceleration defaults on
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404319
2009-12-15 20:36:31 +00:00
Sam Lantinga
abec9e44fa Fixed bug #815
Daniele Forghieri      2009-10-12 02:57:03 PDT

Patch to use stdlib.h with Open Watcom

Open Watcom 1.8 has <stdlib.h> so instead of patch the single part when stdlib
features are used we use directly the include file as with GCC.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404318
2009-12-15 20:14:50 +00:00