[SDL] BUG?: RGBA->screen blit has 1-off error with opaque colors
Markus Laire
malaire at gmail.com
Wed Jun 6 05:20:00 PDT 2007
On 6/6/07, Markus Laire <malaire at gmail.com> wrote:
> The attached program should print "First pixel: 00FFFFFF" but instead
> of that I get "First pixel: 00FEFEFE"
>
> Am I right in thinking that this is a bug in SDL?
>
> OS is Linux (Knoppix 4.0.2)
> SDL version is 1.2.11
Here is even smaller test-case. This program should print
"FFFFFF...FFFFFF" but prints "FEFEFE...FEFEFE" instead.
If the SDL_SetAlpha-call is uncommented, this works as expected, so
the problem seems to be in alpha-blitting.
--
Markus Laire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug2.c
Type: text/x-csrc
Size: 846 bytes
Desc: not available
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070606/c9e12325/attachment.c
More information about the SDL
mailing list