From 7b3864290b686f9a615be145c0dee1ba80716e89 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 17 Feb 2018 20:32:49 +0000 Subject: [PATCH] This looks more logical to me Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4081 --- src/hardware/vga_tseng.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hardware/vga_tseng.cpp b/src/hardware/vga_tseng.cpp index cf8482fd..9e66c9f5 100644 --- a/src/hardware/vga_tseng.cpp +++ b/src/hardware/vga_tseng.cpp @@ -701,8 +701,10 @@ void FinishSetMode_ET3K(Bitu crtc_base, VGA_ModeExtraData* modeData) { IO_Write(crtc_base,0x25);IO_Write(crtc_base+1,et4k_ver_overflow); // Clear remaining ext CRTC registers - for (Bitu i=0x16; i<=0x21; i++) - IO_Write(crtc_base,i);IO_Write(crtc_base+1,0); + for (Bitu i=0x16; i<=0x21; i++) { + IO_Write(crtc_base,i); + IO_Write(crtc_base+1,0); + } IO_Write(crtc_base,0x23);IO_Write(crtc_base+1,0); IO_Write(crtc_base,0x24);IO_Write(crtc_base+1,0); // Clear ext SEQ