monochrome bit test fix

Fix for issue:
https://github.com/V2RetroComputing/analog/issues/15
This commit is contained in:
David Kuder 2023-04-22 03:47:38 -04:00
parent 8f6ca91059
commit 7c3fa52a3f

View File

@ -103,7 +103,7 @@ static void DELAYED_COPY_CODE(render_dhgr_line)(bool p2, uint line) {
dots |= (line_mema[i] & 0x7f) << 25; dots |= (line_mema[i] & 0x7f) << 25;
i++; i++;
if(soft_switches & SOFTSW_MONOCHROME) { if((soft_switches & SOFTSW_MONOCHROME) || (mono_palette & 0x8)) {
// Consume 8 pixels (32 subpixel bits) // Consume 8 pixels (32 subpixel bits)
for(j = 0; j < 16; j++) { for(j = 0; j < 16; j++) {
pixeldata = ((dots & 1) ? (text_fore) : (text_back)); pixeldata = ((dots & 1) ? (text_fore) : (text_back));