Added CRTCB reg 0xEE color depth part, fixes SVGA detection with the et4000w32p on OS/2 2.1x/3.x/4.x.

This commit is contained in:
TC1995
2018-03-23 20:00:37 +01:00
parent a26d477208
commit 82540583dd

View File

@@ -285,6 +285,15 @@ uint8_t et4000w32p_in(uint16_t addr, void *p)
case 0x214B: case 0x215B: case 0x216B: case 0x217B:
if (et4000->index==0xec)
return (et4000->regs[0xec] & 0xf) | 0x60; /*ET4000/W32p rev D*/
if (et4000->index == 0xee) /*Preliminary implementation*/
{
if (svga->bpp == 8)
return 3;
else if (svga->bpp == 16)
return 4;
else
break;
}
if (et4000->index == 0xef)
{
if (et4000->pci) return et4000->regs[0xef] | 0xe0; /*PCI*/