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
Sam Lantinga
ddbeadf670
Fixed bug #818
...
Daniele Forghieri 2009-10-12 02:52:02 PDT
Updated makefile & Doc for Open Watcom 1.8
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404317
2009-12-15 20:11:29 +00:00
Ryan C. Gordon
820021226c
Added a warning comment to SDL_putenv().
...
"Fixes" Bugzilla #779 .
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404316
2009-12-15 18:00:16 +00:00
Sam Lantinga
08bbf9ac95
Fixed bug #905
...
Give the foreign window message proc more control over Windows events.
This may need to be adjusted when we add the capability for the app to specify whether it wants SDL to handle input for the window or not.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404315
2009-12-15 09:20:10 +00:00
Sam Lantinga
fb16cf8cac
Fixed bug #906
...
Added better error reporting for OpenGL context creation failing.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404314
2009-12-15 08:11:06 +00:00
Sam Lantinga
9f5a112e87
Add a dummy function if SDL doesn't have STDIO support
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404313
2009-12-15 05:34:58 +00:00
Sam Lantinga
db04a493f2
Added notes from e-mail on desktop window implementation
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404312
2009-12-15 02:16:01 +00:00
Sam Lantinga
e4877f62c1
Need to test the multi-draw APIs
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404311
2009-12-15 00:00:30 +00:00
Sam Lantinga
a7733bcb17
Added svn checkout install step
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404310
2009-12-14 23:43:57 +00:00
Sam Lantinga
0158b925d3
The SDL 1.3 tests have been cleaned up not to include any 1.2 compatibility code.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404309
2009-12-14 23:29:37 +00:00
Sam Lantinga
1bd0c772d9
Implemented read/write pixels for the X11 renderer
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404307
2009-12-14 06:52:17 +00:00
Sam Lantinga
c2767e72dd
Added a test to check the read/write pixels API
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404306
2009-12-14 06:35:59 +00:00
Sam Lantinga
9ea9c7518d
Added support for SDL_PIXELFORMAT_RGB24 and SDL_PIXELFORMAT_BGR24 to SDL_PixelFormatEnumToMasks()
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404305
2009-12-14 06:35:27 +00:00
Sam Lantinga
e8b8ea1e0a
Added a BLENDMODE_MASK pixel shader so render tests succeed
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404304
2009-12-14 04:19:00 +00:00
Sam Lantinga
21611bcf67
The SDL_PaletteWatch structure is really internal-only.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404303
2009-12-13 08:00:25 +00:00