Fix rgbgfx_test.cpp 8-to-5 bit color conversion (#2172)

This commit is contained in:
Rangi authored and GitHub committed 2026-09-27 09:16:07 -04:00
1 parent f37e289fde
commit 6df932c010
1 file changed
+1 -1
+1 -1
View File
@@ -466,7 +466,7 @@ int main(int argc, char *argv[]) {
auto cgbColor = [](Rgba const &rgba) {
auto field = [](uint16_t component, uint8_t shift) {
return (component & 0x1F) << shift;
return (component >> 3) << shift;
};
return rgba.isTransparent()
? Rgba::transparent