1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Copy and paste 2bpp character support.

This commit is contained in:
Thomas Harte 2021-06-21 23:27:13 -04:00
parent 69c0734975
commit 3acd0be1f7

View File

@ -550,6 +550,15 @@ template <int bpp, int index_bits> void Nick::output_character(uint16_t *target,
target[7] = palette[(pixels & 0x01) >> 0]; target[7] = palette[(pixels & 0x01) >> 0];
target += 8; target += 8;
} break; } 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;
} }
} }
} }