Simplify RGBGFX code by using fewer templates

This commit is contained in:
Rangi42
2025-09-20 21:06:51 -04:00
parent e7f5ab3f55
commit a82fd17529
2 changed files with 14 additions and 29 deletions

View File

@@ -235,7 +235,7 @@ void reverse() {
palette.begin() + options.nbColorsPerPal,
[&buf, i = 0]() mutable {
i += 2;
return Rgba::fromCGBColor(buf[i - 2] + (buf[i - 1] << 8));
return Rgba::fromCGBColor(buf[i - 2] | buf[i - 1] << 8); // little-endian
}
);
}