1
0
Fork 0

Fix screen clearing when setting mode 0xA on PCjr machine type.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3970
This commit is contained in:
ripsaw8080 2016-03-06 13:04:58 +00:00
parent 3dc6d7115e
commit 663c86378f

View file

@ -386,6 +386,7 @@ static void FinishSetMode(bool clearmem) {
if (clearmem) {
switch (CurMode->type) {
case M_TANDY16:
case M_CGA4:
if ((machine==MCH_PCJR) && (CurMode->mode >= 9)) {
// PCJR cannot access the full 32k at 0xb800
for (Bit16u ct=0;ct<16*1024;ct++) {
@ -395,7 +396,6 @@ static void FinishSetMode(bool clearmem) {
break;
}
// fall-through
case M_CGA4:
case M_CGA2:
for (Bit16u ct=0;ct<16*1024;ct++) {
real_writew( 0xb800,ct*2,0x0000);