Commit 5c8cdbf833511c1d078642d08bc3248130d7c76f

Authored by blueswir1
1 parent 18c6e2ff

TCX palette bug fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2695 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 0 deletions
hw/tcx.c
... ... @@ -296,6 +296,7 @@ static void tcx_dac_writel(void *opaque, target_phys_addr_t addr, uint32_t val)
296 296 case 2:
297 297 s->b[s->dac_index] = val >> 24;
298 298 update_palette_entries(s, s->dac_index, s->dac_index + 1);
  299 + s->dac_index = (s->dac_index + 1) & 255; // Index autoincrement
299 300 default:
300 301 s->dac_state = 0;
301 302 break;
... ...