From 6cf40b7446e3eaacb5fe4169571ebbbc45d87956 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Tue, 17 Apr 2007 19:42:21 +0000 Subject: [PATCH] TCX palette bug fix --- hw/tcx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/tcx.c b/hw/tcx.c index 7ab0aa33aa..20d9340c4a 100644 --- a/hw/tcx.c +++ b/hw/tcx.c @@ -296,6 +296,7 @@ static void tcx_dac_writel(void *opaque, target_phys_addr_t addr, uint32_t val) case 2: s->b[s->dac_index] = val >> 24; update_palette_entries(s, s->dac_index, s->dac_index + 1); + s->dac_index = (s->dac_index + 1) & 255; // Index autoincrement default: s->dac_state = 0; break; -- 2.11.4.GIT