Previous 15994 Revisions Next

r12288 Wednesday 20th July, 2011 at 22:31:47 UTC by Angelo Salese
Added preliminary RBG1 layer, this adds up car hud in Gale Racer
[src/mame/video]stvvdp2.c

src/mame/video/stvvdp2.c
r12287r12288
41734173   }
41744174}
41754175
4176static void stv_vdp2_draw_rotation_screen(running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int iRP);
4177
4178
41764179static void stv_vdp2_copy_roz_bitmap(bitmap_t *bitmap,
41774180                            running_machine &machine,
41784181                            bitmap_t *roz_bitmap,
r12287r12288
45794582       Column Scroll     : Yes
45804583       Mosaic            : Yes
45814584    */
4582   stv2_current_tilemap.enabled = STV_VDP2_N0ON;
45834585
4586      stv2_current_tilemap.enabled = STV_VDP2_N0ON | STV_VDP2_R1ON;
4587
45844588//  if (!stv2_current_tilemap.enabled) return; // stop right now if its disabled ...
45854589
45864590   //stv2_current_tilemap.trans_enabled = STV_VDP2_N0TPON;
r12287r12288
46314635   stv2_current_tilemap.vertical_linescroll_enable = STV_VDP2_N0LSCY;
46324636   stv2_current_tilemap.linezoom_enable = STV_VDP2_N0LZMX;
46334637
4634   stv2_current_tilemap.plane_size = STV_VDP2_N0PLSZ;
4638   stv2_current_tilemap.plane_size = (STV_VDP2_R1ON) ? STV_VDP2_RBPLSZ : STV_VDP2_N0PLSZ;
46354639   stv2_current_tilemap.colour_ram_address_offset = STV_VDP2_N0CAOS;
46364640   stv2_current_tilemap.fade_control = (STV_VDP2_N0COEN * 1) | (STV_VDP2_N0COSL * 2);
46374641   stv_vdp2_check_fade_control_for_layer(machine);
r12287r12288
46454649
46464650   stv2_current_tilemap.layer_name=0;
46474651
4648   if ( stv2_current_tilemap.enabled )
4652   if ( stv2_current_tilemap.enabled && (!(STV_VDP2_R1ON))) /* TODO: check cycle pattern for RBG1 */
46494653   {
46504654      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 );
46514655   }
46524656
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);
46544661}
46554662
46564663static void stv_vdp2_draw_NBG1(running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect)
r12287r12288
50445051      }
50455052   }
50465053
5047
50485054   if ( stv_vdp2_is_rotation_applied() == 0 )
50495055   {
50505056      stv2_current_tilemap.scrollx = stv_current_rotation_parameter_table.mx >> 16;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team