From 6df932c0102cbd3b625d6109d27c3617d896d8f7 Mon Sep 17 00:00:00 2001 From: Rangi <35663410+Rangi42@users.noreply.github.com> Date: Sun, 27 Sep 2026 09:16:07 -0400 Subject: [PATCH] Fix `rgbgfx_test.cpp` 8-to-5 bit color conversion (#2172) --- test/gfx/rgbgfx_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/gfx/rgbgfx_test.cpp b/test/gfx/rgbgfx_test.cpp index 8691d80e..c3df737a 100644 --- a/test/gfx/rgbgfx_test.cpp +++ b/test/gfx/rgbgfx_test.cpp @@ -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