aboutsummaryrefslogtreecommitdiff
path: root/hw/tcx.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-17 19:42:21 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-17 19:42:21 +0000
commit5c8cdbf833511c1d078642d08bc3248130d7c76f (patch)
tree0ca957c098a0ad46f23ecc7bb23a87208ff5487b /hw/tcx.c
parent18c6e2ff5adc016031566f409382417f6fde626d (diff)
TCX palette bug fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2695 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/tcx.c')
-rw-r--r--hw/tcx.c1
1 files changed, 1 insertions, 0 deletions
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;