Fixed a silly VGA-emulation palette bug.
This commit is contained in:
parent
63d3040f8f
commit
e1848e5cdb
@ -166,8 +166,8 @@ void VGA_ioport_out( WORD port, BYTE val )
|
|||||||
case 0x3c9:
|
case 0x3c9:
|
||||||
((BYTE*)&paldat)[palcnt++]=val << 2;
|
((BYTE*)&paldat)[palcnt++]=val << 2;
|
||||||
if (palcnt==3) {
|
if (palcnt==3) {
|
||||||
VGA_SetPalette(&paldat,palreg,1);
|
VGA_SetPalette(&paldat,palreg++,1);
|
||||||
palreg++;
|
palcnt=0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user