Ryan C. Gordon
1a2d04cab5
Fixed another infinite recursion accident in stdlib.
2013-04-05 16:34:59 -04:00
Ryan C. Gordon
ccf4a46f60
Fixed infinite recursion (thanks, Rainer!).
2013-04-03 10:36:15 -04:00
Ryan C. Gordon
1fa34e72be
Improvements to stdlib.
...
All SDL_* functions are always available as real symbols, so you can always
link against them as a stable ABI. By default, however, all the things that
might have dithered down to macros in your application are now force-inlined,
to give you the same effect as before and theoretically better performance,
but still solve the classic macro problems.
Elsewhere, we provide real functions for these things that simply wrap the
inline functions, in case one needs to have a real function available.
Also: this exposed bugs: SDL_abs() does something different if you had the
macro vs the libc function, SDL_memcpy() returns a void* in the function
but not the macro, etc.
2013-03-15 01:01:20 -04:00
Sam Lantinga
019c60c1e8
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
129f163eeb
Fixed bug in SDL_strcasecmp() with strings of different sizes
2012-12-22 16:52:33 -08:00
Sam Lantinga
b3d60cfcbb
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Sam Lantinga
e256711bb9
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
6371c44a9e
Lots of fixes importing SDL source wholesale into a new iOS project
2011-10-31 05:56:58 -04:00
Sam Lantinga
6d456a4116
Added SDL_GetScancodeFromName() and SDL_GetKeyFromName()
2011-10-24 21:34:54 -04:00
Sam Lantinga
6196aa221e
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
f0c424685b
SDL 1.3 requires a 64-bit type for the platform.
2011-03-25 13:47:49 -07:00
Sam Lantinga
819b3f3559
Fixed compiler warning
2011-03-06 21:17:44 -08:00
Sam Lantinga
b5513f44c8
Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in order)
...
Even if we're blitting between two different surfaces their pixels might still overlap, because of SDL_CreateRGBSurfaceFrom(), so always use SDL_BlitCopy() and check for overlap in that function.
When handling overlapping surfaces, don't assume that memcpy() iterates forward, instead use memmove() correctly, and provide a fallback implementation of SDL_memmove() that handles the different cases.
Fixed a bug with SDL_memset() not completely filling lengths that aren't a multiple of 4.
Optimized SDL_memcpy() a bit using the same technique as SDL_memset().
2011-02-16 15:25:10 -08:00
Sam Lantinga
a2cdcf5486
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
6cc7f17e34
Fixed size_t warnings on 64-bit build
2011-01-22 15:58:21 -08:00
dewyatt
a83ba70ce5
Added SDL_wcslcpy and SDL_wcslcat.
2010-08-03 16:52:10 -04:00
dewyatt
d3a558d55e
Added SDL_utf8strlcpy to copy at UTF-8 character boundaries.
...
Changed SDL_SendKeyboardText and SDL_SendEditingText to use SDL_utf8strlcpy.
2010-07-13 15:05:45 -04:00
Sam Lantinga
7052036491
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
2010-01-24 21:10:53 +00:00
Sam Lantinga
b856e71f8d
Fixed issues building 64-bit Windows binary
2009-09-05 23:37:35 +00:00
Sam Lantinga
befb0f7f42
Updated copyright date
2008-12-08 00:27:32 +00:00
Sam Lantinga
b6ab6bf6d5
make indent
2007-06-14 13:21:29 +00:00
Ryan C. Gordon
15db051b10
Merged r3047:3048 from branches/SDL-1.2: SDL_revcpy() off-by-one fix.
2007-06-04 11:45:10 +00:00
Ryan C. Gordon
7a0fd00cf4
Merged r2979:2980 from branches/SDL-1.2: unsigned char in ctype funcs.
2007-02-15 11:14:24 +00:00
Sam Lantinga
6bdc957609
Implemented blend modes in the D3D renderer
2006-07-19 05:03:21 +00:00
Sam Lantinga
0c86ca7a06
More of the Direct3D renderer is implemented, I'm not sure why it's not showing texture copies yet...
2006-07-14 06:40:53 +00:00
Sam Lantinga
f3567e6d90
Removed libc dependency on Windows again, to fix building with Visual C++ 2005 Express Edition.
...
Fixed performance problem with testsprite2 on the D3D driver.
2006-07-13 08:13:02 +00:00
Sam Lantinga
6bc598ea61
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
2006-07-10 21:04:37 +00:00
Sam Lantinga
9a48decd81
Fixed bug #251
2006-06-20 05:55:23 +00:00
Sam Lantinga
5400b91864
Fixed some bugs in string handling
...
Cleaned up error message code, UTF-8 is used instead of UCS2
Added detection for MPEG Layer 3 audio for more informative errors.
2006-05-11 21:03:23 +00:00
Sam Lantinga
3227f8dde8
Added _strnicmp support
2006-03-13 02:12:39 +00:00
Sam Lantinga
2b03f1c722
Win32 fixes
2006-03-13 02:06:33 +00:00
Sam Lantinga
48c546dc44
Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
2006-03-13 01:08:00 +00:00
Sam Lantinga
62c5e3a5d5
Fixed a bunch of 64-bit compatibility problems
2006-03-01 09:43:47 +00:00
Sam Lantinga
190b425364
Use consistent identifiers for the various platforms we support.
...
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
2006-02-21 08:46:50 +00:00
Sam Lantinga
0ef73d9eae
Use only safe string functions
2006-02-19 23:46:34 +00:00
Sam Lantinga
769424426d
More header massaging... works great on Windows. ;-)
2006-02-10 06:48:43 +00:00
Sam Lantinga
20c4849e7e
Fixed build problem with SDL_string.c
...
Officially deprecated SDL_byteorder.h, SDL_getenv.h and SDL_types.h
Moved endian-related SDL_rwops code into SDL_rwops.c
2006-02-09 09:38:05 +00:00
Sam Lantinga
e28c454fca
*** empty log message ***
2006-02-07 17:46:19 +00:00
Sam Lantinga
d72a9898ed
Configure dynamically generates SDL_config.h
...
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
2006-02-07 12:11:33 +00:00
Sam Lantinga
1e037cc218
Removed uses of stdlib.h and string.h
2006-02-07 09:29:18 +00:00
Sam Lantinga
02cc6c0f11
Use SDL_ prefixed versions of C library functions.
...
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
2006-02-07 06:59:48 +00:00
Sam Lantinga
82bfaee73a
It's now possible to build SDL without any C runtime at all on Windows,
...
using Visual C++ 2005
2006-02-06 08:28:51 +00:00