mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Copy and paste 2bpp character support.
This commit is contained in:
parent
69c0734975
commit
3acd0be1f7
@ -550,6 +550,15 @@ template <int bpp, int index_bits> void Nick::output_character(uint16_t *target,
|
||||
target[7] = palette[(pixels & 0x01) >> 0];
|
||||
target += 8;
|
||||
} break;
|
||||
|
||||
case 2:
|
||||
target[0] = palette_[((pixels & 0x80) >> 6) | ((pixels & 0x08) >> 3)];
|
||||
target[1] = palette_[((pixels & 0x40) >> 5) | ((pixels & 0x04) >> 2)];
|
||||
target[2] = palette_[((pixels & 0x20) >> 4) | ((pixels & 0x02) >> 1)];
|
||||
target[3] = palette_[((pixels & 0x10) >> 3) | ((pixels & 0x01) >> 0)];
|
||||
|
||||
target += 4;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user