Added missing layers, fixed visible area

This commit is contained in:
Angelo Salese 2011-09-20 17:26:59 +00:00
parent c27b19f0d3
commit 6cb305f3da

View File

@ -27,30 +27,14 @@ static VIDEO_START( umipoker )
}
static SCREEN_UPDATE( umipoker )
static void draw_layer( running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int layer_n )
{
umipoker_state *state = screen->machine().driver_data<umipoker_state>();
umipoker_state *state = machine.driver_data<umipoker_state>();
int x,y;
int count;
const gfx_element *gfx = screen->machine().gfx[0];
const gfx_element *gfx = machine.gfx[0];
count = 0/2;
for(y=0;y<32;y++)
{
for(x=0;x<64;x++)
{
int tile = state->m_vram[count*2+0];
int attr = state->m_vram[count*2+1];
int color = (attr & 0x1f);
drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,(x*8),(y*8));
count++;
}
}
count = 0x3000/2;
count = (layer_n*0x1000) / 2;
for(y=0;y<32;y++)
{
@ -66,6 +50,18 @@ static SCREEN_UPDATE( umipoker )
}
}
}
static SCREEN_UPDATE( umipoker )
{
//umipoker_state *state = screen->machine().driver_data<umipoker_state>();
int i;
bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine()));
for(i=0;i<4;i++)
draw_layer(screen->machine(),bitmap,cliprect,i);
return 0;
}
@ -135,7 +131,7 @@ static MACHINE_CONFIG_START( umipoker, umipoker_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1)
MCFG_SCREEN_VISIBLE_AREA(8*8, 48*8-1, 2*8, 32*8-1)
MCFG_SCREEN_UPDATE(umipoker)
MCFG_GFXDECODE(umipoker)
@ -193,5 +189,5 @@ ROM_START( sayukipk )
ROM_END
GAME( 1997, umipoker, 0, umipoker, umipoker, 0, ROT0, "World Station Co.,LTD", "Umi de Poker", GAME_NOT_WORKING | GAME_NO_SOUND )
GAME( 1997, umipoker, 0, umipoker, umipoker, 0, ROT0, "World Station Co.,LTD", "Marine Paradise", GAME_NOT_WORKING | GAME_NO_SOUND ) // Umi de Poker?
GAME( 1997, sayukipk, 0, umipoker, umipoker, 0, ROT0, "World Station Co.,LTD", "Slot Poker Saiyuki", GAME_NOT_WORKING | GAME_NO_SOUND )