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