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 - Surface that alpha is 128 is rendered incorrectly, if that surface was optimized.
Summary: Surface that alpha is 128 is rendered incorrectly, if that surface was optimi...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.13
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 05:23 UTC by leiget
Modified: 2011-02-05 16:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!