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 1018

Summary: Surface that alpha is 128 is rendered incorrectly, if that surface was optimized.
Product: SDL Reporter: leiget
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.13   
Hardware: x86   
OS: Linux   

Description leiget 2010-07-08 05:23:06 UTC
If I load a surface, then optimize it using SDL_DisplaySurface(), and then set the alpha to 128, it will render like vertical scanlines, and look weird.

This is what it is looks like:
http://img203.imageshack.us/img203/551/screenshot2zk.png

The pink colored box is supposed to be a full box. The every other column is not rendered. The green and blue colors in the box are intentional.
Comment 1 leiget 2010-07-08 05:25:22 UTC
I put the importance down to normal. I don't know why I put it to major.
Comment 2 Sam Lantinga 2011-02-04 19:54:58 UTC
I'm actively fixing things in SDL 1.3.  Can you verify that this has been fixed?
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!
Comment 3 leiget 2011-02-05 14:12:19 UTC
Okay, on Ubuntu 9.10, SDL 1.3 renders it right, and SDL 1.2 does not. However, on Windows XP the problem did not appear on SDL 1.2, it was only on Linux. Here's the final outcome:

http://img130.imageshack.us/img130/6810/betterwj.png

Also, I don't know why the test rect is on the top of the screen, because I'm using the same exact file on both test. Never the less, SDL 1.3 does everything correctly.
Comment 4 Sam Lantinga 2011-02-05 16:08:10 UTC
Fixed in SDL 1.3.  Thanks!