Sam Lantinga
0cb6385637
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Andreas Schiffler
56c27c7be9
Fix bug 1789: SDL_IntersectRect intersection with empty rect does not set result to empty; add test coverage to Rect suite
2013-04-17 08:09:11 -07:00
Sam Lantinga
fecccf1718
Fixed bug 1763 - Constify SDL_UpdateWindowSurfaceRects()
...
Ryan C. Gordon
With this function...
SDL_UpdateWindowSurfaceRects(SDL_Window * window, SDL_Rect * rects, int numrects);
...is there any reason rects isn't "const SDL_Rect *" ?
2013-03-19 21:53:33 -07:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
ad2a21d404
Lots of fixes importing SDL source wholesale into a new iOS project
...
--HG--
rename : src/libm/math.h => src/libm/math_libm.h
2011-10-31 05:56:58 -04:00
Ryan C. Gordon
f369e4fa7c
Patched to compile on some platforms.
2011-09-18 02:09:20 -04:00
Andreas Schiffler
1694584d77
Add special cases for empty rectangles in SDL_Rect functions
2011-09-17 22:35:57 -07:00
Andreas Schiffler
b1185bef03
Fix regression introducted by added parameter check in SDL_EnclosePoints. Add special case to speedup when no result was requested.
2011-09-12 09:00:01 -07:00
Andreas Schiffler
e36c0d8376
Added input parameter validation to some SDL_rect functions
2011-09-04 20:34:48 -07:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
72cdb910fb
Center the old SDL 1.2 screen in the window if we can't get the size we wanted.
2011-02-13 23:09:18 -08:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
d2b54f7d24
Made it possible to create a texture of any format, even if not supported by the renderer.
...
This allows me to reduce the set of formats supported by the renderers to the most optimal set, for a nice speed boost.
--HG--
rename : src/video/SDL_yuv_mmx.c => src/render/SDL_yuv_mmx.c
rename : src/video/SDL_yuv_sw.c => src/render/SDL_yuv_sw.c
rename : src/video/SDL_yuv_sw_c.h => src/render/SDL_yuv_sw_c.h
rename : src/video/mmx.h => src/render/mmx.h
2011-02-03 00:19:40 -08:00
Sam Lantinga
5897ef7d95
Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library.
...
--HG--
rename : src/video/windows/SDL_d3drender.c => src/render/direct3d/SDL_d3drender.c
rename : src/video/SDL_renderer_gl.c => src/render/opengl/SDL_renderer_gl.c
rename : src/video/SDL_renderer_gles.c => src/render/opengles/SDL_renderer_gles.c
rename : src/video/SDL_renderer_sw.c => src/render/software/SDL_renderer_sw.c
2011-02-02 14:34:54 -08:00
Sam Lantinga
74e352d011
Fixed variable use before initialize warnings
2010-05-09 15:24:31 -07:00
Sam Lantinga
4d3df8b3e3
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
2010-01-24 21:10:53 +00:00
Sam Lantinga
60b65d182a
Make sure we fully clip the first point before starting to adjust the second point.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404286
2009-12-11 09:57:54 +00:00
Sam Lantinga
1ba0c1618e
Added an automated test for rectangle routines, currently only testing line clipping.
...
Use the Cohen-Sutherland algorithm for line clipping which uses integer math and preserves ordering of clipped points.
Removed getopt() support in testsdl.c, replaced with simple argv scanning.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404285
2009-12-11 09:22:34 +00:00
Sam Lantinga
8ee9720297
Added interfaces for batch drawing of points, lines and rects:
...
SDL_DrawPoints()
SDL_BlendPoints()
SDL_BlendLines()
SDL_DrawLines()
SDL_FillRects()
SDL_BlendRects()
SDL_RenderPoints()
SDL_RenderLines()
SDL_RenderRects()
Renamed SDL_RenderFill() to SDL_RenderRect()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404279
2009-12-09 15:56:56 +00:00
Sam Lantinga
62ab848372
Fix recommended by Eddy L O Jansson
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403509
2009-01-19 03:28:23 +00:00
Sam Lantinga
3171d3d0a7
Fixed lines intersecting the top corners of a rectangle
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403466
2009-01-05 07:07:48 +00:00
Sam Lantinga
ba8f64f259
indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403459
2009-01-04 23:41:09 +00:00
Sam Lantinga
522eb2b9e1
Date: Sat, 3 Jan 2009 22:11:18 -0500
...
From: "Donny Viszneki"
Subject: Re: [SDL] Want to help with SDL 1.3?
>> > For example, here's a good quick project for someone from the TODO list:
>> > * Add diagonal line clipping to SDL_IntersectRectAndLine()
Just wanted to point out that the patch is available at
http://codebad.com/rect-line-ix.patch
I hereby grant Sam Lantinga an irrevocable non-exclusive distribution
license to this patch to do with as he wishes.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403456
2009-01-04 19:33:21 +00:00
Sam Lantinga
08e0277512
indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403382
2008-12-25 05:26:29 +00:00
Sam Lantinga
eb9f3bc6eb
Added line clipping
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403371
2008-12-23 02:23:18 +00:00
Sam Lantinga
0c30a927ed
Updated copyright date
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403321
2008-12-08 00:27:32 +00:00
Sam Lantinga
68d2b55278
Split out the SDL_rect and SDL_surface functions into their own headers.
...
Removed unused count from the dirty rect list.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402639
2007-09-10 12:20:02 +00:00
Sam Lantinga
60cc07ddbf
Whoops, it's not quite that easy - fixed bug in SDL_ClearDirtyRects()
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402586
2007-08-11 21:42:36 +00:00
Sam Lantinga
1c3727d1db
Optimized dirty rect code
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402585
2007-08-11 21:34:08 +00:00
Sam Lantinga
0f030a1802
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401938
2006-07-10 21:04:37 +00:00