mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-09 15:39:08 +00:00
Reverses bit order.
So, for the first time: a green desktop.
This commit is contained in:
parent
e1dc3b1915
commit
f93cdd21de
@ -105,10 +105,10 @@ void Video::run_for(HalfCycles duration) {
|
||||
|
||||
for(int c = 0; c < 16; ++c) {
|
||||
*pixel_pointer_ = palette_[
|
||||
((source[0] >> 12) & 0x8) |
|
||||
((source[1] >> 13) & 0x4) |
|
||||
((source[2] >> 14) & 0x2) |
|
||||
((source[3] >> 15) & 0x1)
|
||||
((source[3] >> 12) & 0x8) |
|
||||
((source[2] >> 13) & 0x4) |
|
||||
((source[1] >> 14) & 0x2) |
|
||||
((source[0] >> 15) & 0x1)
|
||||
];
|
||||
source[0] <<= 1;
|
||||
source[1] <<= 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user