2019-08-01 05:57 AM
Hi, i discovered wierd behavior for touchgfx when using 1bit mode (BW or BW_RLE).
Issue happens when you place black color on white one, then in editor everything looks normal but in simulator and on the board the white color overlays the black one. For example when you have white background and black square in the middle, only white background is displayed (opposite works fine).
I am attaching touchgfx project where you can reproduce this issue.
I am using touchgfx 4.10.0
2019-08-01 11:13 PM
Hi @Dominik Müller,
Thank you for reporting this issue. I have passed it on to the development team.
As a workaround for this bug, may i suggest you create an image of the navigation wheel and use that instead?
/Anders
2019-08-02 05:01 AM
Hi @Dominik Müller,
I have a fix for this issue:
In touchgfx/framework/source/touchgfx/widgets/canvas/PainterBW.cpp line 46 change:
unsigned pixel = painterColor << (7 - (x % 8));
to
unsigned pixel = 1 << (7 - (x % 8));
Then ensure to add touchgfx/framework/source/touchgfx/widgets/canvas/PainterBW.cpp to you compilation.
Fix will be included in the next version of TouchGFX.
Thanks for reporting!
/Anders
2019-08-05 02:05 AM
Hi,
thank you for your quick response!
I have tried to apply your fix and now it's working as expected.