mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Apply Olivier's suggestion for the byte_swap field's behaviour for RGB8 displays.
This commit is contained in:
parent
1f205dffe7
commit
287bd922a4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue