double-buffer order: GRB

This commit is contained in:
Patrick Haßel 2023-01-03 15:05:32 +01:00
parent 617822b493
commit a3038b255b

View File

@ -126,8 +126,9 @@ public:
return; return;
} }
buffer[index] = { buffer[index] = {
(uint8_t) (color.r * brightness >> 8), // yes, correct order is GRB !!!
(uint8_t) (color.g * brightness >> 8), (uint8_t) (color.g * brightness >> 8),
(uint8_t) (color.r * brightness >> 8),
(uint8_t) (color.b * brightness >> 8) (uint8_t) (color.b * brightness >> 8)
}; };
} }