Mercurial > sdl-ios-xcode
annotate .cvsignore @ 997:3bf4103b2b89
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 .
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 30 Nov 2004 14:28:20 +0000 |
parents | 623b453a3219 |
children | 70bfe658442c |
rev | line source |
---|---|
0 | 1 Makefile.in |
2 configure | |
3 aclocal.m4 | |
4 config.log | |
5 config.cache | |
754
623b453a3219
Fixed "dist" make target for newer versions of automake
Sam Lantinga <slouken@libsdl.org>
parents:
703
diff
changeset
|
6 autom4te* |
596
475f969e8c01
CVS should ignore files automatically generated by building on MacOS X
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
7 depcomp |
0 | 8 libtool |
9 config.status | |
10 Makefile | |
11 sdl-config | |
12 SDL.spec | |
703
ca809c1b41ca
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
596
diff
changeset
|
13 SDL.qpg |
596
475f969e8c01
CVS should ignore files automatically generated by building on MacOS X
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
14 .DS_Store |