| Summary: | Images are not shown correctly | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Albert Astals Cid <aacid> |
| Component: | qt | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Example image | ||
|
Description
Albert Astals Cid
2003-12-27 18:32:42 UTC
Created attachment 3851 [details]
Example image
The problem is caused by lines 1008-1013 of qpixmap_x11.cpp in Qt 3.3:
// make sure image.color(0) == color0 (white) and image.color(1) == color1 (black)
if (image.color(0) == Qt::black.rgb() && image.color(1) == Qt::white.rgb()) {
image.invertPixels();
image.setColor(0, Qt::white.rgb());
image.setColor(1, Qt::black.rgb());
}
CVS commit by waba: Fix mask to work with both Qt 3.2 & Qt 3.3 (BR71317) CCMAIL: 71317-done@bugs.kde.org M +3 -3 arrow_mask.png 1.1.6.1 M +2 -3 empty2_mask.png 1.1.6.1 M +1 -1 empty_mask.png 1.1.6.1 M +2 -5 game_over_mask.png 1.1.6.1 M +1 -1 introabout_mask.png 1.1.6.1 M +1 -5 piece_mask.png 1.1.6.1 M +2 -2 star0_mask.png 1.1.6.1 M +2 -2 star1_mask.png 1.1.6.1 M +3 -3 star2_mask.png 1.1.6.1 M +3 -3 star3_mask.png 1.1.6.1 M +2 -2 star4_mask.png 1.1.6.1 |