SDL-mirror/src
Sam Lantinga 3f36d970a0 From: "Alex Volkov"
Date: Thu, 10 Nov 2005 21:53:40 -0500
Subject: [SDL] BUG[?]: 32bpp RGBA->RGB colorkey blit, no SDL_SRCALPHA

It seems there is either a documentation vs. reality mismatch or a real bug
in SDL_blit_N.c:BlitNtoNKey().
The exact blit in question is a 32bpp RGBA->RGB, where RGBA has SDL_COLORKEY
and *no* SDL_SRCALPHA flags. The doc in SDL_video.h states:
* RGBA->RGB:
*     SDL_SRCALPHA not set:
*       copy RGB.
*       if SDL_SRCCOLORKEY set, only copy the pixels matching the
*       RGB values of the source colour key, ignoring alpha in the
*       comparison.

BlitNtoNKey(), however, forgets to "ignore alpha in the comparison". The
documentation makes perfect sense, so I think it is the code that is faulty.

The attached patch corrects the code.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401547
2006-03-15 15:43:15 +00:00
..
audio *** empty log message *** 2006-03-15 04:29:35 +00:00
cdrom Fixed bug #46 2006-03-14 05:34:39 +00:00
cpuinfo Cleaning up warnings on MacOS X 2006-03-09 06:33:21 +00:00
events Fixed bug #38 2006-03-14 06:00:30 +00:00
file Updated WinCE support by Dmitry (with some tweaks) 2006-03-04 08:24:35 +00:00
hermes Use consistent identifiers for the various platforms we support. 2006-02-21 08:46:50 +00:00
joystick *** empty log message *** 2006-03-11 23:44:21 +00:00
loadso Updated MacOS X support 2006-03-07 04:58:30 +00:00
main Updated MacOS Classic and MacOS X exports list 2006-03-14 07:55:40 +00:00
stdlib RFC 3629 restricted the range of characters encoded with UTF-8 to 0000-10FFFF (the UTF-16 accessible range) 2006-03-13 17:25:44 +00:00
thread Fixed bug #150 2006-03-12 01:18:29 +00:00
timer Fixes from Dmitry Yakimov: 2006-03-11 23:46:45 +00:00
video From: "Alex Volkov" 2006-03-15 15:43:15 +00:00
.cvsignore Initial revision 2001-04-26 16:45:43 +00:00
SDL.c Cleaning up warnings on MacOS X 2006-03-09 06:33:21 +00:00
SDL_error.c Use consistent identifiers for the various platforms we support. 2006-02-21 08:46:50 +00:00
SDL_error_c.h Use consistent identifiers for the various platforms we support. 2006-02-21 08:46:50 +00:00
SDL_fatal.c Use consistent identifiers for the various platforms we support. 2006-02-21 08:46:50 +00:00
SDL_fatal.h Use consistent identifiers for the various platforms we support. 2006-02-21 08:46:50 +00:00