src/mame/video/snes.c
| r5356 | r5357 | |
| 276 | 276 | *****************************************/ |
| 277 | 277 | INLINE void snes_draw_tile_common(UINT8 screen, UINT8 planes, UINT8 layer, UINT16 tileaddr, INT16 x, UINT8 priority, UINT8 flip, UINT16 pal ) |
| 278 | 278 | { |
| 279 | | UINT8 mask, plane[planes]; |
| 279 | UINT8 mask, plane[8]; |
| 280 | 280 | UINT16 c; |
| 281 | 281 | INT16 ii, jj; |
| 282 | 282 | |
| 283 | 283 | for (ii = 0; ii < planes / 2; ii++) |
| 284 | 284 | { |
| 285 | 285 | 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]; |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | if (flip) |
| r5356 | r5357 | |
| 652 | 652 | tmap -= ii; |
| 653 | 653 | hscroll = 0; /* Make sure we don't do this again */ |
| 654 | 654 | } |
| 655 | | if (tmap > 0x10000) |
| 655 | if (tmap > 0x10000) |
| 656 | 656 | tmap %= 0x10000; |
| 657 | 657 | |
| 658 | 658 | vflip = snes_vram[tmap + ii + 1] & 0x80; |