Sam Lantinga
b34845333f
Updated project with new source files
2008-12-25 04:56:44 +00:00
Sam Lantinga
70cb1363d0
Fixed pitch alignment problem causing MITSHM error on 16-bit displays
2008-12-25 04:42:28 +00:00
Sam Lantinga
d426540e62
Fixed CPU feature detection on x86_64 platform
...
(registers were being corrupted, causing crashes)
2008-12-24 13:13:38 +00:00
Sam Lantinga
658ede9913
Correct the test program
2008-12-24 13:04:18 +00:00
Sam Lantinga
e53beea887
Don't unlock a surface we didn't lock
2008-12-24 12:17:25 +00:00
Sam Lantinga
6bd5c458f4
Fixed clipping source rect to match destination rect clipping
2008-12-23 04:51:36 +00:00
Sam Lantinga
c23e998d2d
Need diagonal line clipping
2008-12-23 02:39:03 +00:00
Sam Lantinga
6763fa8275
Fixed argument order to the line clipping routine
2008-12-23 02:38:28 +00:00
Sam Lantinga
de843c65d6
Added line clipping
2008-12-23 02:23:18 +00:00
Sam Lantinga
a2258f8fb8
Added clipping for render copy
2008-12-23 01:28:06 +00:00
Sam Lantinga
9feaa729fd
typo fix
2008-12-22 05:29:55 +00:00
Sam Lantinga
7ba47374bc
/* FIXME FIXME FIXME
...
* Window creation fails in the colormap code on DirectColor visuals:
* XA_RGB_BEST_MAP not found and could not be created
* I'm disabling this for now until Bob can look at it. We don't need
* it until we implement the gamma fading using DirectColor RGB ramps
*/
2008-12-22 04:58:35 +00:00
Sam Lantinga
6000a35a70
Fixed crash when resizing the window with the software renderer.
...
This is similar to the crash fix in the OpenGL renderer in revision 4187
2008-12-22 04:52:43 +00:00
Sam Lantinga
8adb14536f
Fixed clip_rect when drawing points and lines with software renderer.
...
Lock the minimal rect to minimize texture uploads
2008-12-21 20:17:41 +00:00
Sam Lantinga
77fa0d11ee
Working Bresenham line drawing algorithm. We can optimize later, if needed.
2008-12-21 20:16:21 +00:00
Sam Lantinga
8074db74ef
Fixed crash in testdraw2, added more points
2008-12-21 17:55:02 +00:00
Sam Lantinga
8318ef98b6
Added RenderPiont() API
...
Merged the drawing tests into a single test program
2008-12-21 17:39:41 +00:00
Sam Lantinga
4890f640e1
Make it possible to switch algorithms in the future
2008-12-21 08:59:56 +00:00
Sam Lantinga
5f5a1e9537
Added ARGB optimized case for Mac OS X
2008-12-21 08:55:06 +00:00
Sam Lantinga
32cdac94f1
Share code between fill and line drawing
...
Added general RGB surface format fallbacks to drawing code
Fixed issues with destination surface alpha channel
2008-12-21 08:28:25 +00:00
Sam Lantinga
686e035308
Added test program to verify fill functionality
2008-12-21 08:24:32 +00:00
Sam Lantinga
a4fed15d99
Date: Sat, 20 Dec 2008 23:25:19 +0100
...
From: Couriersud
Subject: 32 & 16 bit versions of blendrect and blendline
attached are 32, 16 and 15 bit versions of the blendrect and blendline
functionality. There was an issue with the bresenham alg. in drawline
which I also fixed.
2008-12-20 23:19:20 +00:00
Sam Lantinga
6fa6a75e4c
indent
2008-12-20 23:10:20 +00:00
Sam Lantinga
b5201d604f
Added missing return
2008-12-20 18:56:35 +00:00
Sam Lantinga
be0e05d990
Turn on line antialiasing (requires blending to be enabled)
2008-12-20 18:40:30 +00:00
Sam Lantinga
03a3cba901
Add a few test pattern lines
2008-12-20 18:26:06 +00:00
Sam Lantinga
40274d476d
indent
2008-12-20 13:55:45 +00:00
Sam Lantinga
04239d1026
Placeholder for line drawing algorithm (current code doesn't work)
2008-12-20 13:54:19 +00:00
Sam Lantinga
b9692e08c9
Fixed crash in software line drawing
2008-12-20 13:53:54 +00:00
Sam Lantinga
f2c09059c1
Added stubs for software implementations of blending fills and line drawing
2008-12-20 13:14:28 +00:00
Sam Lantinga
7c31254bef
Added a test program for line drawing
2008-12-20 12:32:53 +00:00
Sam Lantinga
18ce8e4eca
Minor corrections
2008-12-20 12:32:38 +00:00
Sam Lantinga
ad3074b376
indent
2008-12-20 12:32:25 +00:00
Sam Lantinga
94e70de686
Date: Fri, 19 Dec 2008 20:17:35 +0100
...
From: Couriersud
Subject: Re: Aw: Experience using SDL1.3 in sdlmame/Proposal for api additions
> For consistency you'd probably want:
> SDL_SetRenderDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a);
> SDL_SetRenderDrawBlendMode(SDL_BlendMode blendMode);
> SDL_RenderLine(int x1, int y1, int x2, int y2);
> SDL_RenderFill(SDL_Rect *rect);
>
> You probably also want to add API functions query the current state.
>
I have implemented the above api for the opengl, x11, directfb and
software renderers. I have also renamed *TEXTUREBLENDMODE* constants to
BLENDMODE*. The unix build compiles. The windows renderer still needs to
be updated, but I have no windows development machine at hand. Have a
look at the x11 renderer for a sample.
Vector games now run at 90% both on opengl and directfb in comparison to
sdlmame's own opengl renderer. The same applies to raster games.
The diff also includes
a) Changed XDrawRect to XFillRect in x11 renderer
b) A number of changes to fix blending and modulation issues in the
directfb renderer.
2008-12-20 12:00:00 +00:00
Sam Lantinga
daf038ecc4
indent
2008-12-20 08:41:05 +00:00
Sam Lantinga
a74cf87942
Fixed crash when resizing YUV textures
2008-12-20 06:46:37 +00:00
Ryan C. Gordon
e0728d1927
More resampling fixes.
2008-12-19 09:15:59 +00:00
Ryan C. Gordon
29777ee64b
Allocate SDL_AudioCVT::coeff before using it.
...
FIXME: this is a memory leak. We don't have an SDL_FreeAudioCVT() yet.
2008-12-19 08:30:26 +00:00
Ryan C. Gordon
809690101a
Use SDL_zerop instead of SDL_memset.
2008-12-19 06:43:41 +00:00
Ryan C. Gordon
59c33d9a0b
Zero out SDL_AudioCVT struct before using it, to ensure it's all initialized.
2008-12-19 06:01:03 +00:00
Sam Lantinga
f0d933f425
Reminder to implement icon support
2008-12-19 04:42:18 +00:00
Sam Lantinga
2dd3c64cfe
indent
2008-12-17 07:19:55 +00:00
Sam Lantinga
5d10dfeab6
* Implemented X11 fullscreen input grab
...
* Progress towards being able to toggle in and out of fullscreen mode
2008-12-17 07:17:54 +00:00
Sam Lantinga
1e0de4517d
indent
2008-12-16 17:44:10 +00:00
Sam Lantinga
e983f2162d
Progress on fullscreen mode switching on X11
2008-12-16 17:41:03 +00:00
Sam Lantinga
9ad4a87532
Use the desktop format instead of an arbitrary one.
2008-12-16 17:40:30 +00:00
Sam Lantinga
893e52b5a0
Corrected case for TargetConditionals.h
2008-12-14 07:22:15 +00:00
Sam Lantinga
e7f3d9dc3e
The X11 window and all pixmaps and images share the same visual and depth.
2008-12-14 04:36:32 +00:00
Sam Lantinga
b0a80e17f6
Whoops, the X11 driver doesn't support fullscreen modes (yet)
2008-12-13 13:30:11 +00:00
Sam Lantinga
d46fe961f6
Fixed BadMatch error in X11 renderer
2008-12-13 13:10:53 +00:00