From 42adb8617ce0df0efcd9c79650d1d09a4d880e15 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 31 Jan 2007 11:08:35 +0000 Subject: [PATCH] Vesa 16 color modes use the highres vga/textmode palette Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2790 --- src/ints/int10_modes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index dca2fc14..c5c9ae17 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -802,8 +802,8 @@ bool INT10_SetVideoMode(Bitu mode) { att_data[0x12]=0xf; //Always have all color planes enabled /* Program Attribute Controller */ switch (CurMode->type) { - case M_LIN4: case M_EGA: + case M_LIN4: att_data[0x10]=0x01; //Color Graphics switch (CurMode->mode) { case 0x0f: @@ -820,6 +820,8 @@ bool INT10_SetVideoMode(Bitu mode) { case 0x10: case 0x12: goto att_text16; default: + if ( CurMode->type == M_LIN4 ) + goto att_text16; for (i=0;i<8;i++) { att_data[i]=i; att_data[i+8]=i+0x10;