SDL/src
Sam Lantinga bfb8e9a82f Date: Sat, 27 Nov 2004 13:35:43 +0100
From: "Martin Bickel"
Subject: [SDL] Patch: fixing uninitilized palette

while running Valgrind over my application I found the following
problem in SDL:

The function MapNto1 allocates  SDL_Color colors[256]  but does not
initialize it.
SDL_DitherColors is then called which initialized the r, g and b
component, but not the 'unused' component of each color.
When Map1to1 is called from MapNto1, it runs a memcmp on the colors,
which also evaluates the unused component and therefor returns
differences much more often than necessary.

So the 'unused' component of SDL_Color should be initialized. This
patch does this by calling memset for the whole array in MapNto1 .
2004-11-30 14:28:20 +00:00
..
audio Date: Mon, 11 Oct 2004 15:17:27 +0300 (EEST) 2004-11-12 21:39:04 +00:00
cdrom Audio improvements from Max Horn, including a new CoreAudio driver for MacOSX 2004-08-21 02:06:30 +00:00
cpuinfo Date: Mon, 10 May 2004 10:17:46 -0400 2004-05-16 17:19:48 +00:00
endian Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
events Date: Sun, 18 Jul 2004 00:22:07 -0400 2004-08-21 12:38:50 +00:00
file Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
hermes Updated libtool support so Mingw32 builds work. 2003-10-06 07:13:16 +00:00
joystick Fix from Alfred Perlstein 2004-11-12 21:24:46 +00:00
main Updated for Visual C++ 6 build 2004-11-15 23:34:56 +00:00
thread Date: Fri, 25 Jun 2004 13:29:15 +0100 2004-09-17 13:20:10 +00:00
timer Date: Fri, 25 Jun 2004 13:29:15 +0100 2004-09-17 13:20:10 +00:00
video Date: Sat, 27 Nov 2004 13:35:43 +0100 2004-11-30 14:28:20 +00:00
.cvsignore Initial revision 2001-04-26 16:45:43 +00:00
Makefile.am Actually hook the cpuinfo module into the library. :) 2003-11-18 02:16:57 +00:00
SDL_error_c.h Date: Mon, 3 May 2004 03:15:01 +0100 2004-07-18 22:57:40 +00:00
SDL_error.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_fatal.c Oops, ignore SIGALRM, not 0 2004-02-26 19:57:37 +00:00
SDL_fatal.h Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_getenv.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_loadso.c Date: Mon, 5 Jan 2004 00:09:36 +0100 2004-01-05 01:34:34 +00:00
SDL.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00