Apply Olivier's suggestion for the byte_swap field's behaviour for RGB8 displays.

This commit is contained in:
Simon Hausmann 2025-01-08 13:34:21 +01:00 committed by Simon Hausmann
parent 1f205dffe7
commit 287bd922a4

View file

@ -55,8 +55,8 @@ struct SlintPlatformConfiguration
std::optional<std::span<PixelType>> buffer2 = {};
slint::platform::SoftwareRenderer::RenderingRotation rotation =
slint::platform::SoftwareRenderer::RenderingRotation::NoRotation;
/// Swap the 2 bytes of RGB 565 pixels before sending to the display, or turn RGB into BGR. Use
/// this if your CPU is little endian but the display expects big-endian.
/// Swap the 2 bytes of RGB 565 pixels before sending to the display, or turn 24-bit RGB into
/// BGR. Use this if your CPU is little endian but the display expects big-endian.
union {
bool color_swap_16;
bool color_swap = false;