1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-08 14:25:05 +00:00

Shorten long lines.

This commit is contained in:
Thomas Harte
2023-02-01 14:18:36 -05:00
parent 002d27d9c2
commit 1264600bab

View File

@@ -827,8 +827,16 @@ void Base<personality>::commit_register(int reg, uint8_t value) {
case 44: case 44:
Storage<personality>::command_context_.colour = value; Storage<personality>::command_context_.colour = value;
Storage<personality>::command_context_.colour4bpp = uint8_t((value & 0xf) | (value << 4)); Storage<personality>::command_context_.colour4bpp = uint8_t(
Storage<personality>::command_context_.colour2bpp = uint8_t((value & 0x3) | ((value & 0x3) << 2) | ((value & 0x3) << 4) | ((value & 0x3) << 6)); (value & 0xf) |
(value << 4)
);
Storage<personality>::command_context_.colour2bpp = uint8_t(
(value & 0x3) |
((value & 0x3) << 2) |
((value & 0x3) << 4) |
((value & 0x3) << 6)
);
// Check whether a command was blocked on this. // Check whether a command was blocked on this.
if( if(