From 3a2b3c6d57d74320afe8f28332886400d540a539 Mon Sep 17 00:00:00 2001 From: ripsaw8080 Date: Mon, 12 Nov 2018 16:39:49 +0000 Subject: [PATCH] Reset write ops after drawing text in EGA graphics modes, consistent with EGA/VGA BIOS. Fixes Fun School 3. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4169 --- src/ints/int10_char.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ints/int10_char.cpp b/src/ints/int10_char.cpp index d8c5aaa9..4acf8cf1 100644 --- a/src/ints/int10_char.cpp +++ b/src/ints/int10_char.cpp @@ -625,6 +625,11 @@ void INT10_WriteChar(Bit8u chr,Bit8u attr,Bit8u page,Bit16u count,bool showattr) cur_row++; } } + + if (CurMode->type==M_EGA) { + // Reset write ops for EGA graphics modes + IO_Write(0x3ce,0x3);IO_Write(0x3cf,0x0); + } } static void INT10_TeletypeOutputAttr(Bit8u chr,Bit8u attr,bool useattr,Bit8u page) {