Mercurial > sdl-ios-xcode
annotate test/.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 | 700c9c5c923b |
children | e6a82dcdce09 |
rev | line source |
---|---|
416 | 1 Makefile.in |
2 Makefile | |
3 configure | |
4 config.cache | |
5 config.log | |
6 config.status | |
754
623b453a3219
Fixed "dist" make target for newer versions of automake
Sam Lantinga <slouken@libsdl.org>
parents:
676
diff
changeset
|
7 autom4te* |
416 | 8 aclocal.m4 |
9 checkkeys | |
10 graywin | |
11 loopwave | |
12 testalpha | |
13 testbitmap | |
14 testcdrom | |
817
700c9c5c923b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
754
diff
changeset
|
15 testcpuinfo |
416 | 16 testerror |
17 testgamma | |
18 testgl | |
19 testhread | |
20 testjoystick | |
21 testkeys | |
22 testlock | |
23 testoverlay | |
676
8b58eeef4576
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
416
diff
changeset
|
24 testoverlay2 |
416 | 25 testpalette |
26 testsem | |
27 testsprite | |
28 testtimer | |
29 testtypes | |
30 testver | |
31 testvidinfo | |
32 testwin | |
33 testwm | |
34 threadwin |