From e1848e5cdbdcc44a2e5a78fb0329c34b9aba6a47 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sun, 14 Mar 1999 12:23:17 +0000 Subject: [PATCH] Fixed a silly VGA-emulation palette bug. --- graphics/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/vga.c b/graphics/vga.c index d006e0d7b3e..5dc7723079d 100644 --- a/graphics/vga.c +++ b/graphics/vga.c @@ -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; }