Previous 15994 Revisions Next

r5357 Thursday 6th August, 2009 at 10:05:24 UTC by Angelo Salese
Fixed non-C99 complaint
[src/mame/video]snes.c

src/mame/video/snes.c
r5356r5357
276276 *****************************************/
277277INLINE void snes_draw_tile_common(UINT8 screen, UINT8 planes, UINT8 layer, UINT16 tileaddr, INT16 x, UINT8 priority, UINT8 flip, UINT16 pal )
278278{
279   UINT8 mask, plane[planes];
279   UINT8 mask, plane[8];
280280   UINT16 c;
281281   INT16 ii, jj;
282282
283283   for (ii = 0; ii < planes / 2; ii++)
284284   {
285285      plane[2 * ii] = snes_vram[tileaddr + 16 * ii];
286      plane[2 * ii + 1] = snes_vram[tileaddr + 16 * ii + 1];   
286      plane[2 * ii + 1] = snes_vram[tileaddr + 16 * ii + 1];
287287   }
288288
289289   if (flip)
r5356r5357
652652         tmap -= ii;
653653         hscroll = 0;   /* Make sure we don't do this again */
654654      }
655      if (tmap > 0x10000)
655      if (tmap > 0x10000)
656656         tmap %= 0x10000;
657657
658658      vflip = snes_vram[tmap + ii + 1] & 0x80;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team