src/mame/video/stvvdp2.c
| r12280 | r12281 | |
| 4410 | 4410 | |
| 4411 | 4411 | if ( x & clipxmask || y & clipymask ) continue; |
| 4412 | 4412 | pix = *BITMAP_ADDR16(roz_bitmap, y & planerenderedsizey, x & planerenderedsizex); |
| 4413 | | if(stv2_current_tilemap.fade_control & 1) |
| 4414 | | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4415 | 4413 | switch( stv2_current_tilemap.transparency ) |
| 4416 | 4414 | { |
| 4417 | 4415 | case STV_TRANSPARENCY_PEN: |
| 4418 | | if ( pix != 0x0000 ) line[hcnt] = pix; |
| 4416 | if ( pix != 0x0000 ) |
| 4417 | { |
| 4418 | if(stv2_current_tilemap.fade_control & 1) |
| 4419 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4420 | |
| 4421 | line[hcnt] = pix; |
| 4422 | } |
| 4419 | 4423 | break; |
| 4420 | 4424 | case STV_TRANSPARENCY_NONE: |
| 4425 | if(stv2_current_tilemap.fade_control & 1) |
| 4426 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4427 | |
| 4421 | 4428 | line[hcnt] = pix; |
| 4422 | 4429 | break; |
| 4423 | 4430 | case STV_TRANSPARENCY_ALPHA: |
| 4424 | | if ( pix != 0x000 ) line[hcnt] = alpha_blend_r16( line[hcnt], pix, stv2_current_tilemap.alpha ); |
| 4431 | if ( pix != 0x000 ) |
| 4432 | { |
| 4433 | if(stv2_current_tilemap.fade_control & 1) |
| 4434 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4435 | |
| 4436 | line[hcnt] = alpha_blend_r16( line[hcnt], pix, stv2_current_tilemap.alpha ); |
| 4437 | } |
| 4425 | 4438 | break; |
| 4426 | 4439 | case STV_TRANSPARENCY_ADD_BLEND: |
| 4427 | | if ( pix != 0x0000 ) line[hcnt] = stv_add_blend( line[hcnt], pix ); |
| 4440 | if ( pix != 0x0000 ) |
| 4441 | { |
| 4442 | if(stv2_current_tilemap.fade_control & 1) |
| 4443 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4444 | |
| 4445 | line[hcnt] = stv_add_blend( line[hcnt], pix ); |
| 4446 | } |
| 4428 | 4447 | break; |
| 4429 | 4448 | } |
| 4430 | 4449 | |
| r12280 | r12281 | |
| 4502 | 4521 | if ( x & clipxmask || y & clipymask ) continue; |
| 4503 | 4522 | |
| 4504 | 4523 | pix = *BITMAP_ADDR16(roz_bitmap, y & planerenderedsizey, x & planerenderedsizex); |
| 4505 | | if(stv2_current_tilemap.fade_control & 1) |
| 4506 | | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4507 | 4524 | switch( stv2_current_tilemap.transparency ) |
| 4508 | 4525 | { |
| 4509 | 4526 | case STV_TRANSPARENCY_PEN: |
| 4510 | | if ( pix != 0x0000 ) line[hcnt] = pix; |
| 4527 | if ( pix != 0x0000 ) |
| 4528 | { |
| 4529 | if(stv2_current_tilemap.fade_control & 1) |
| 4530 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4531 | |
| 4532 | line[hcnt] = pix; |
| 4533 | } |
| 4511 | 4534 | break; |
| 4512 | 4535 | case STV_TRANSPARENCY_NONE: |
| 4536 | if(stv2_current_tilemap.fade_control & 1) |
| 4537 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4538 | |
| 4513 | 4539 | line[hcnt] = pix; |
| 4514 | 4540 | break; |
| 4515 | 4541 | case STV_TRANSPARENCY_ALPHA: |
| 4516 | | if ( pix != 0x000 ) line[hcnt] = alpha_blend_r16( line[hcnt], pix, stv2_current_tilemap.alpha ); |
| 4542 | if ( pix != 0x000 ) |
| 4543 | { |
| 4544 | if(stv2_current_tilemap.fade_control & 1) |
| 4545 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4546 | |
| 4547 | line[hcnt] = alpha_blend_r16( line[hcnt], pix, stv2_current_tilemap.alpha ); |
| 4548 | } |
| 4517 | 4549 | break; |
| 4518 | 4550 | case STV_TRANSPARENCY_ADD_BLEND: |
| 4519 | | if ( pix != 0x0000 ) line[hcnt] = stv_add_blend( line[hcnt], pix ); |
| 4551 | if ( pix != 0x0000 ) |
| 4552 | { |
| 4553 | if(stv2_current_tilemap.fade_control & 1) |
| 4554 | stv_vdp2_compute_color_offset_RGB555_UINT16(machine,&pix,stv2_current_tilemap.fade_control & 2); |
| 4555 | |
| 4556 | line[hcnt] = stv_add_blend( line[hcnt], pix ); |
| 4557 | } |
| 4520 | 4558 | break; |
| 4521 | 4559 | } |
| 4522 | 4560 | } |