src/mame/video/stvvdp2.c
| r12287 | r12288 | |
| 4173 | 4173 | } |
| 4174 | 4174 | } |
| 4175 | 4175 | |
| 4176 | static void stv_vdp2_draw_rotation_screen(running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int iRP); |
| 4177 | |
| 4178 | |
| 4176 | 4179 | static void stv_vdp2_copy_roz_bitmap(bitmap_t *bitmap, |
| 4177 | 4180 | running_machine &machine, |
| 4178 | 4181 | bitmap_t *roz_bitmap, |
| r12287 | r12288 | |
| 4579 | 4582 | Column Scroll : Yes |
| 4580 | 4583 | Mosaic : Yes |
| 4581 | 4584 | */ |
| 4582 | | stv2_current_tilemap.enabled = STV_VDP2_N0ON; |
| 4583 | 4585 | |
| 4586 | stv2_current_tilemap.enabled = STV_VDP2_N0ON | STV_VDP2_R1ON; |
| 4587 | |
| 4584 | 4588 | // if (!stv2_current_tilemap.enabled) return; // stop right now if its disabled ... |
| 4585 | 4589 | |
| 4586 | 4590 | //stv2_current_tilemap.trans_enabled = STV_VDP2_N0TPON; |
| r12287 | r12288 | |
| 4631 | 4635 | stv2_current_tilemap.vertical_linescroll_enable = STV_VDP2_N0LSCY; |
| 4632 | 4636 | stv2_current_tilemap.linezoom_enable = STV_VDP2_N0LZMX; |
| 4633 | 4637 | |
| 4634 | | stv2_current_tilemap.plane_size = STV_VDP2_N0PLSZ; |
| 4638 | stv2_current_tilemap.plane_size = (STV_VDP2_R1ON) ? STV_VDP2_RBPLSZ : STV_VDP2_N0PLSZ; |
| 4635 | 4639 | stv2_current_tilemap.colour_ram_address_offset = STV_VDP2_N0CAOS; |
| 4636 | 4640 | stv2_current_tilemap.fade_control = (STV_VDP2_N0COEN * 1) | (STV_VDP2_N0COSL * 2); |
| 4637 | 4641 | stv_vdp2_check_fade_control_for_layer(machine); |
| r12287 | r12288 | |
| 4645 | 4649 | |
| 4646 | 4650 | stv2_current_tilemap.layer_name=0; |
| 4647 | 4651 | |
| 4648 | | if ( stv2_current_tilemap.enabled ) |
| 4652 | if ( stv2_current_tilemap.enabled && (!(STV_VDP2_R1ON))) /* TODO: check cycle pattern for RBG1 */ |
| 4649 | 4653 | { |
| 4650 | 4654 | stv2_current_tilemap.enabled = stv_vdp2_check_vram_cycle_pattern_registers( machine, STV_VDP2_CP_NBG0_PNMDR, STV_VDP2_CP_NBG0_CPDR, stv2_current_tilemap.bitmap_enable ); |
| 4651 | 4655 | } |
| 4652 | 4656 | |
| 4653 | | stv_vdp2_check_tilemap(machine, bitmap, cliprect); |
| 4657 | if(STV_VDP2_R1ON) |
| 4658 | stv_vdp2_draw_rotation_screen(machine, bitmap, cliprect, 2 ); |
| 4659 | else |
| 4660 | stv_vdp2_check_tilemap(machine, bitmap, cliprect); |
| 4654 | 4661 | } |
| 4655 | 4662 | |
| 4656 | 4663 | static void stv_vdp2_draw_NBG1(running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect) |
| r12287 | r12288 | |
| 5044 | 5051 | } |
| 5045 | 5052 | } |
| 5046 | 5053 | |
| 5047 | | |
| 5048 | 5054 | if ( stv_vdp2_is_rotation_applied() == 0 ) |
| 5049 | 5055 | { |
| 5050 | 5056 | stv2_current_tilemap.scrollx = stv_current_rotation_parameter_table.mx >> 16; |