src/mame/video/snes.c
| r7499 | r7500 | |
| 269 | 269 | |
| 270 | 270 | if (!hires) |
| 271 | 271 | { |
| 272 | | if (scanlines[SNES_MAINSCREEN].enable) |
| 272 | if (scanlines[SNES_MAINSCREEN].enable) |
| 273 | 273 | { |
| 274 | 274 | |
| 275 | 275 | #ifdef SNES_LAYER_DEBUG |
| r7499 | r7500 | |
| 317 | 317 | } |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | | if (scanlines[SNES_SUBSCREEN].enable) |
| 320 | if (scanlines[SNES_SUBSCREEN].enable) |
| 321 | 321 | { |
| 322 | 322 | #ifdef SNES_LAYER_DEBUG |
| 323 | 323 | if (!debug_options.windows_disabled) |
| r7499 | r7500 | |
| 491 | 491 | mask >>= 1; |
| 492 | 492 | } |
| 493 | 493 | |
| 494 | | if (scanlines[SNES_MAINSCREEN].enable) |
| 494 | if (scanlines[SNES_MAINSCREEN].enable) |
| 495 | 495 | { |
| 496 | 496 | |
| 497 | 497 | #ifdef SNES_LAYER_DEBUG |
| r7499 | r7500 | |
| 516 | 516 | } |
| 517 | 517 | } |
| 518 | 518 | |
| 519 | | if (scanlines[SNES_SUBSCREEN].enable) |
| 519 | if (scanlines[SNES_SUBSCREEN].enable) |
| 520 | 520 | { |
| 521 | 521 | |
| 522 | 522 | #ifdef SNES_LAYER_DEBUG |
| r7499 | r7500 | |
| 650 | 650 | while (ii < 256) |
| 651 | 651 | { |
| 652 | 652 | /* |
| 653 | | Tilemap format |
| 654 | | vhopppcc cccccccc |
| 653 | Tilemap format |
| 654 | vhopppcc cccccccc |
| 655 | 655 | |
| 656 | | v/h = Vertical/Horizontal flip this tile. |
| 657 | | o = Tile priority. |
| 658 | | ppp = Tile palette. The number of entries in the palette depends on the Mode and the BG. |
| 659 | | cccccccccc = Tile number. |
| 660 | | */ |
| 656 | v/h = Vertical/Horizontal flip this tile. |
| 657 | o = Tile priority. |
| 658 | ppp = Tile palette. The number of entries in the palette depends on the Mode and the BG. |
| 659 | cccccccccc = Tile number. |
| 660 | */ |
| 661 | 661 | |
| 662 | 662 | // determine the horizontal position (Bishojo Janshi Suchi Pai & Desert Figther have tile_size & hires == 1) |
| 663 | 663 | UINT32 xpos = xoff + (ii << (tile_size * hires)); |
| r7499 | r7500 | |
| 669 | 669 | UINT32 haddr = 0, vaddr = 0; |
| 670 | 670 | UINT16 hval = 0, vval = 0; |
| 671 | 671 | |
| 672 | | if (opt_x >= 8) |
| 672 | if (opt_x >= 8) |
| 673 | 673 | { |
| 674 | 674 | switch (offset_per_tile) |
| 675 | 675 | { |
| r7499 | r7500 | |
| 911 | 911 | } |
| 912 | 912 | } |
| 913 | 913 | |
| 914 | | if (scanlines[SNES_SUBSCREEN].enable) |
| 914 | if (scanlines[SNES_SUBSCREEN].enable) |
| 915 | 915 | { |
| 916 | 916 | if (scanlines[SNES_SUBSCREEN].clip) |
| 917 | 917 | colour &= snes_ppu.clipmasks[layer][xpos]; |