Ticket #12 (closed defect)
Error with wxMask and 16bpp X-Server
| Reported by: | anonymous | Owned by: | roebling |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxGTK | Version: | |
| Keywords: | Cc: | roebling | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Bug#: 58
Product: .wxWindows
Version: 2.1.13
Platform: wxGTK
OS/Version: Linux - SuSE
Status: NEW
Resolution:
Severity: normal
Priority: P2
Component: wxGTK
AssignedTo: ???
ReportedBy: luispaul@…
URL:
Summary: Error with wxMask and 16bpp X-Server
In wxMask::Create we can find:
if (bpp == 16)
{
red = red & 0xf8;
blue = blue & 0xfc;
green = green & 0xf8;
}
Order of the operators (0xf8, 0xfc, 0xf8)
seems to be wrong because
in my X-Server (with 16bpp) masks are not rightly
created .
I have tested with 24bpp X-Server and wxMask is ok.
I think that one just have to switch the GREEN and BLUE component.
One uses 6 bits for GREEN because the eye ist most sensible for
green. In fact the human eye resolution is even higher than 8 bit
used in truecolor mode, while 8 bit is perfect for RED and BLUE.
