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:
parent
3dc6d7115e
commit
663c86378f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue