Previous 199869 Revisions Next

r31712 Wednesday 20th August, 2014 at 13:58:57 UTC by David Haywood
fix girls 4,5,6 in popbingo bonus round
[src/mame/video]dooyong.c

trunk/src/mame/video/dooyong.c
r31711r31712
224224      flags = ((attr & 0x02) ? TILE_FLIPX : 0) | ((attr & 0x04) ? TILE_FLIPY : 0);
225225   }
226226   else
227   {   /* primella/popbingo */
227   {   
228
229      /* primella */
228230      /* Tiles take two bytes in ROM:
229231                       MSB   LSB
230232         [offs + 0x00] YXCC CCcc    (Y flip, X flip, bits 3-0 of color code, bits 9-8 of gfx code)
r31711r31712
233235         C = color code
234236         X = x flip
235237         Y = y flip */
236      code = tilerom[offs + 1] | ((attr & 0x03) << 8);
237      color = (attr & 0x3c) >> 2;
238      int codemask = 0x03;
239      int palmask  = 0x3c;
240     
241      if (m_gfxdecode->gfx(1)->depth() == 256) // pop bingo has an 8bpp layer and uses what would be the low palette bit to address more tiles (girls 4,5,6 in bonus game)
242      {
243         codemask = 0x07;
244         palmask = 0x00;
245      }
246
247      code = tilerom[offs + 1] | ((attr & codemask) << 8);
248      color = (attr & palmask) >> 2;
238249      flags = ((attr & 0x40) ? TILE_FLIPX : 0) | ((attr & 0x80) ? TILE_FLIPY : 0);
239250   }
240251

Previous 199869 Revisions Next


© 1997-2024 The MAME Team