From 3acd0be1f7c18ccd96cbcc8ebaeef3230cbbb2a9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 21 Jun 2021 23:27:13 -0400 Subject: [PATCH] Copy and paste 2bpp character support. --- Machines/Enterprise/Nick.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Machines/Enterprise/Nick.cpp b/Machines/Enterprise/Nick.cpp index f8272c5fe..6eb188ab7 100644 --- a/Machines/Enterprise/Nick.cpp +++ b/Machines/Enterprise/Nick.cpp @@ -550,6 +550,15 @@ template 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; } } }