mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 10:45:37 +00:00
Fix rgbgfx_test.cpp 8-to-5 bit color conversion (#2172)
This commit is contained in:
1 parent
f37e289fde
commit
6df932c010
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user