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:
|
||||
((BYTE*)&paldat)[palcnt++]=val << 2;
|
||||
if (palcnt==3) {
|
||||
VGA_SetPalette(&paldat,palreg,1);
|
||||
palreg++;
|
||||
VGA_SetPalette(&paldat,palreg++,1);
|
||||
palcnt=0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue