[wxDFB] wxBitmap swaps R and B colours in certain situations
|Reported by:||alarsen||Owned by:||vadz|
wxBitmap displays with R and B colours swapped IFF the wxBitmap does NOT have an alpha channel, as can be demonstrated by the attached patch to the old wxDFB test-bitmap sample.
If the sample function LoadBitmap() is modified to not convert the bitmap to and from a wxImage, the leftmost image is shown with interchanged colours, otherwise it's the rightmost one that's displayed wrong.
If the body of DrawRedEffectsOnBitmap() is commented out completely, both images are displayed identically (as expected).
Text colours are always correct, only wxBitmaps get their colours swapped.
I'm using DirectFB c59be091ecbd83bfcc1535c934bbaf1305b5feac from Wed Jun 4 23:00:39 2008 +0200 plus a VT-switch patch from Vaclav;
the framebuffer is 240x320 RGB16.
(This used to work on an older system with an older DirectFB version; the problem manifests itself on new hardware with newer compiler (4.2.4 vs 3.4.4), newer Linux kernel/framebuffer driver, newer wxWidgets and newer DirectFB...)
Change History (8)
comment:1 Changed 7 years ago by alarsen
- Summary changed from wxBitmap swaps R and B colours in certain situations to [wxDFB] wxBitmap swaps R and B colours in certain situations