src/mame/video/snes.c
| r5415 | r5416 | |
| 473 | 473 | tile_divider = 2; |
| 474 | 474 | break; |
| 475 | 475 | case SNES_COLOR_DEPTH_8BPP: |
| 476 | | color_shift = 6; // 2009-08 FP: this should be 6 or 8, if I'm following correctly the drawing code |
| 476 | color_shift = 0; //n/a, pal offset is always zero |
| 477 | 477 | color_planes = 8; |
| 478 | 478 | tile_divider = 4; |
| 479 | 479 | break; |
| r5415 | r5416 | |
| 496 | 496 | vflip = snes_vram[tmap + ii + 1] & 0x80; |
| 497 | 497 | hflip = snes_vram[tmap + ii + 1] & 0x40; |
| 498 | 498 | priority = ((snes_vram[tmap + ii + 1] & 0x20) >> 5) ? priority_b : priority_a; |
| 499 | | pal = (snes_vram[tmap + ii + 1] & 0x1c) << color_shift; /* 8 palettes of (4 * color_shift) colours */ |
| 499 | pal = (color_depth == SNES_COLOR_DEPTH_8BPP) ? 0 : (snes_vram[tmap + ii + 1] & 0x1c) << color_shift; /* 8 palettes of (4 * color_shift) colours */ |
| 500 | 500 | tile = (snes_vram[tmap + ii + 1] & 0x3) << 8; |
| 501 | 501 | tile |= snes_vram[tmap + ii] & 0xff; |
| 502 | 502 | |