1
0
Fork 0

modified behaviour of port 0x3c1 affects INT10_GetAllPaletteRegisters

(fixes colour in Borland IDEs)


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2246
This commit is contained in:
Sebastian Strohhäcker 2005-07-21 12:41:53 +00:00
parent 74ddc58f16
commit f8728fc4c3

View file

@ -117,11 +117,13 @@ void INT10_GetAllPaletteRegisters(PhysPt data) {
for(Bit8u i=0;i<0x10;i++) {
IO_Write(VGAREG_ACTL_ADDRESS,i);
mem_writeb(data,IO_Read(VGAREG_ACTL_READ_DATA));
IO_Read(VGAREG_ACTL_RESET);
data++;
}
// Then the border
IO_Write(VGAREG_ACTL_ADDRESS,0x11+32);
mem_writeb(data,IO_Read(VGAREG_ACTL_READ_DATA));
IO_Read(VGAREG_ACTL_RESET);
}
void INT10_SetSingleDacRegister(Bit8u index,Bit8u red,Bit8u green,Bit8u blue) {