SDL2 for PSP
Go to file
Sam Lantinga ca383efa22 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 .

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40998
2004-11-30 14:28:20 +00:00
docs *** empty log message *** 2004-05-16 18:09:20 +00:00
include Wrong size of parameters for SDL_Swap32 m68k assembly routine 2004-11-27 23:11:20 +00:00
src Date: Sat, 27 Nov 2004 13:35:43 +0100 2004-11-30 14:28:20 +00:00
test Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon. 2004-11-26 16:16:50 +00:00
.cvsignore Fixed "dist" make target for newer versions of automake 2003-12-14 06:25:53 +00:00
acinclude.m4 Don't fail if we don't have ALSA available 2004-08-24 06:32:50 +00:00
autogen.sh
Borland.html
Borland.zip
BUGS *** empty log message *** 2004-08-20 19:42:44 +00:00
config.guess Updated libtool support so Mingw32 builds work. 2003-10-06 07:13:16 +00:00
config.sub Date: Sat, 24 Apr 2004 15:13:32 +0300 2004-05-06 15:55:06 +00:00
configure.in Final touches to OSMesa OpenGL support on Atari, using loadable libraries. Hope SDL 1.2.8 is out soon. 2004-11-26 16:16:50 +00:00
COPYING
CREDITS Lots of people have contributed cash. :) 2004-02-15 22:04:46 +00:00
CWprojects.sea.bin Update the version on the SDL shared library. Use SDL stub library for tests. 2004-02-14 06:04:41 +00:00
docs.html *** empty log message *** 2004-02-17 18:21:46 +00:00
EpocBuildFiles.zip
INSTALL Date: Tue, 2 Mar 2004 11:34:54 +0100 2004-03-02 13:01:02 +00:00
ltmain.sh Updated libtool support for libtool 1.5.8 2004-08-21 20:35:50 +00:00
Makefile.am Remove automake junk before generating a snapshot 2004-02-16 04:37:56 +00:00
Makefile.dc
MPWmake.sea.bin Updated projects with cpuinfo API 2004-02-10 17:34:38 +00:00
PBProjects.tar.gz The tenth time is the charm... 2004-05-20 10:05:59 +00:00
README
README-SDL.txt
README.AmigaOS
README.CVS *** empty log message *** 2004-05-16 22:37:59 +00:00
README.DC
README.Epoc
README.MacOS
README.MacOSX Instructive comments from Max Horn 2004-03-04 05:39:17 +00:00
README.MiNT Add OSMesa OpenGL support to the Atari GEM video driver 2004-11-21 21:59:47 +00:00
README.NanoX
README.PicoGUI
README.QNX Date: Sat, 24 Apr 2004 15:13:32 +0300 2004-05-06 15:55:06 +00:00
README.Qtopia
README.RISCOS Date: Fri, 25 Jun 2004 13:29:15 +0100 2004-09-17 13:20:10 +00:00
README.WinCE
sdl-config.in Fixed static linking on MacOS X (thanks Max!) 2004-02-11 07:09:11 +00:00
sdl.m4 Updated for the latest version of automake 2004-01-29 16:14:09 +00:00
SDL.qpg.in Date: Tue, 2 Mar 2004 08:52:20 +0200 2004-03-02 12:38:27 +00:00
SDL.spec.in
strip_fPIC.sh
TODO
VisualC7.zip *** empty log message *** 2004-07-18 19:44:06 +00:00
VisualC.html
VisualC.zip Updated for Visual C++ 6 build 2004-11-15 23:30:07 +00:00
VisualCE.zip
WhatsNew *** empty log message *** 2004-01-08 16:01:07 +00:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 1.2

---
http://www.libsdl.org/

This is the Simple DirectMedia Layer, a general API that provides low
level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms.

SDL is written in C, but works with C++ natively, and has bindings to
several other languages, including Ada, C#, Eiffel, Java, Lua, ML,
Objective C, Perl, PHP, Pike, Python, and Ruby.

The current version supports Linux, Windows, BeOS, MacOS, MacOS X,
FreeBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.  The code contains
support for Windows CE, AmigaOS, Dreamcast, Atari, NetBSD, AIX, OSF/Tru64,
RISC OS, and SymbianOS, but these are not officially supported.

This library is distributed under GNU LGPL version 2, which can be
found in the file  "COPYING".  This license allows you to use SDL
freely in commercial programs as long as you link with the dynamic
library.

The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation is available in HTML format in "./docs/index.html"

The test programs in the "test" subdirectory are in the public domain.

Frequently asked questions are answered online:
	http://www.libsdl.org/faq.php

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
	http://www.libsdl.org/mailing-list.php

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)