Corrected the fix for the 40x25 mode of the Plasma.

This commit is contained in:
TC1995
2023-10-14 20:21:10 +02:00
parent 38e63ec9c6
commit 5a94f0ee69

View File

@@ -453,20 +453,17 @@ compaq_plasma_poll(void *priv)
cols[0] = normcols[attr][0]; cols[0] = normcols[attr][0];
} }
/* character underline active and 7th row of pixels in character height being drawn */ /* character underline active and 7th row of pixels in character height being drawn */
/* character underline active and 7th row of pixels in character height being drawn */
if (underline && (sc == 7)) { if (underline && (sc == 7)) {
/* for each pixel in character width */ /* for each pixel in character width */
for (uint8_t c = 0; c < 8; c++) for (uint8_t c = 0; c < 8; c++)
buffer32->line[self->cga.displine][(x << 3) + c] = mdaattr[attr][blink][1]; buffer32->line[self->cga.displine][(x << 4) + (c * 2)] = buffer32->line[self->cga.displine][(x << 4) + (c * 2) + 1] = mdaattr[attr][blink][1];
} else if (drawcursor) { } else if (drawcursor) {
for (uint8_t c = 0; c < 8; c++) { for (uint8_t c = 0; c < 8; c++)
buffer32->line[self->cga.displine][(x << 4) + c * 2] = buffer32->line[self->cga.displine][(x << 4) + c * 2 + 1] = cols[(fontdatm2[chr][sc] & (1 << (c ^ 7))) ? 1 : 0] ^ (amber ^ black); buffer32->line[self->cga.displine][(x << 4) + c * 2] = buffer32->line[self->cga.displine][(x << 4) + c * 2 + 1] = cols[(fontdatm2[chr][sc] & (1 << (c ^ 7))) ? 1 : 0] ^ (amber ^ black);
}
} else { } else {
for (uint8_t c = 0; c < 8; c++) { for (uint8_t c = 0; c < 8; c++)
buffer32->line[self->cga.displine][(x << 4) + c * 2] = buffer32->line[self->cga.displine][(x << 4) + c * 2 + 1] = cols[(fontdatm2[chr][sc] & (1 << (c ^ 7))) ? 1 : 0]; buffer32->line[self->cga.displine][(x << 4) + c * 2] = buffer32->line[self->cga.displine][(x << 4) + c * 2 + 1] = cols[(fontdatm2[chr][sc] & (1 << (c ^ 7))) ? 1 : 0];
} }
}
++ma; ++ma;
} }
} }