We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 848

Summary: SDL_SetAlpha broken with alpha 128
Product: SDL Reporter: Ivo Danihelka <ivo>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: 1.2.13   
Hardware: x86   
OS: Linux   
Attachments: Screenshot with alpha 128.
Screenshot with alpha 129.

Description Ivo Danihelka 2009-10-15 14:45:04 UTC
Created attachment 418 [details]
Screenshot with alpha 128.

SDL_SetAlpha works fine with alpha 127 or 129.
It produces strange colors with alpha 128.
The problem started after upgrading to Ubuntu Jaunty (libsdl1.2debian
1.2.13-4ubuntu3).

The produced colors are not stable. It seems like if they are taken from an
uninitialized variable or something like that.
See the attached a screenshot with alpha 128 and alpha 129.

I noticed that another developer also met it:
http://lists.libsdl.org/pipermail/sdl-libsdl.org/2009-August/071819.html


What info would be helpful to provide?
Thanks.
Comment 1 Ivo Danihelka 2009-10-15 14:46:11 UTC
Created attachment 419 [details]
Screenshot with alpha 129.
Comment 2 Sam Lantinga 2009-10-15 20:31:56 UTC
I believe this has been fixed with the current SDL snapshot:
http://www.libsdl.org/tmp/SDL-1.2.zip

Can you try it out?

Thanks!
Comment 3 Ivo Danihelka 2009-10-16 02:25:39 UTC
The tried SDL-1.2.14 does not the problem.
Thanks.
Comment 4 Sam Lantinga 2009-10-16 07:28:39 UTC
Great, thanks!