src/mame/video/snes.c
| r5443 | r5444 | |
| 290 | 290 | c = snes_cgram[pal + colour]; |
| 291 | 291 | |
| 292 | 292 | if (screen == MAINSCREEN) /* Only blend main screens */ |
| 293 | | snes_draw_blend(ii/snes_htmult, &c, snes_ppu.layer[layer].blend, (snes_ram[CGWSEL] & 0x30) >> 4, (snes_ram[CGWSEL] & 0xc0) >> 6); |
| 293 | snes_draw_blend(ii/snes_htmult, &c, snes_ppu.layer[layer].blend, snes_ppu.sub_color_mask, snes_ppu.main_color_mask); |
| 294 | 294 | if (snes_ppu.layer[layer].mosaic_enabled) // handle horizontal mosaic |
| 295 | 295 | { |
| 296 | 296 | int x_mos; |
| r5443 | r5444 | |
| 390 | 390 | { |
| 391 | 391 | c = snes_cgram[pal + colour]; |
| 392 | 392 | if (blend && screen == MAINSCREEN) /* Only blend main screens */ |
| 393 | | snes_draw_blend(ii/snes_htmult, &c, snes_ppu.layer[4].blend, (snes_ram[CGWSEL] & 0x30) >> 4, (snes_ram[CGWSEL] & 0xc0) >> 6); |
| 393 | snes_draw_blend(ii/snes_htmult, &c, snes_ppu.layer[4].blend, snes_ppu.sub_color_mask, snes_ppu.main_color_mask); |
| 394 | 394 | |
| 395 | 395 | scanlines[screen].buffer[ii] = c; |
| 396 | 396 | scanlines[screen].zbuf[ii] = priority; |
| r5443 | r5444 | |
| 720 | 720 | clr = snes_cgram[colour]; |
| 721 | 721 | /* Only blend main screens */ |
| 722 | 722 | if (screen == MAINSCREEN) |
| 723 | | snes_draw_blend(xpos, &clr, snes_ppu.layer[layer].blend, (snes_ram[CGWSEL] & 0x30) >> 4, (snes_ram[CGWSEL] & 0xc0) >> 6); /* FIXME: Need to support clip mode */ |
| 723 | snes_draw_blend(xpos, &clr, snes_ppu.layer[layer].blend, snes_ppu.sub_color_mask, snes_ppu.main_color_mask); /* FIXME: Need to support clip mode */ |
| 724 | 724 | |
| 725 | 725 | scanlines[screen].buffer[xpos] = clr; |
| 726 | 726 | scanlines[screen].zbuf[xpos] = priority; |
| r5443 | r5444 | |
| 1191 | 1191 | { |
| 1192 | 1192 | for(ii = 0; ii < SNES_SCR_WIDTH * snes_htmult; ii++) |
| 1193 | 1193 | { |
| 1194 | | snes_draw_blend(ii/snes_htmult, &scanlines[MAINSCREEN].buffer[ii], (snes_ram[CGADSUB] & 0x80) ? SNES_BLEND_SUB : SNES_BLEND_ADD, (snes_ram[CGWSEL] & 0x30) >> 4, (snes_ram[CGWSEL] & 0xc0) >> 6); |
| 1194 | snes_draw_blend(ii/snes_htmult, &scanlines[MAINSCREEN].buffer[ii], (snes_ram[CGADSUB] & 0x80) ? SNES_BLEND_SUB : SNES_BLEND_ADD, snes_ppu.sub_color_mask, snes_ppu.main_color_mask); |
| 1195 | 1195 | } |
| 1196 | 1196 | } |
| 1197 | 1197 | |