mirror of
https://github.com/holub/mame
synced 2025-06-05 04:16:28 +03:00
prosport: fixed tile flip y (in golf game)
This commit is contained in:
parent
d94a805ab4
commit
00d8b29d9c
@ -82,11 +82,17 @@ static TILE_GET_INFO( prosport_get_back_tile_info )
|
|||||||
{
|
{
|
||||||
int tile;
|
int tile;
|
||||||
|
|
||||||
/* TODO: bits 0-3 are used and there's an unimplemented per-tile flip y / +0x10 tile banking, understand where. */
|
/*
|
||||||
|
robiza notes:
|
||||||
|
- flip y (handled with a +0x10 tile banking) depends only by position of the tile in the screen
|
||||||
|
- bits 0-3 are not used by gfx hardware; the value is the color of the pixel in the map (golf)
|
||||||
|
*/
|
||||||
|
|
||||||
tile = (prosport_bg_vram[tile_index] & 0xf0)>>4;
|
tile = (prosport_bg_vram[tile_index] & 0xf0)>>4;
|
||||||
// if(!(tile & 0x08)) { tile+=0x10; }
|
|
||||||
tile+= deco16_io_ram[0]&0x20; //Pro Bowling bg tiles banking bit
|
if (tile_index & 0x8) tile += 0x10;
|
||||||
|
|
||||||
|
tile += deco16_io_ram[0]&0x20; //Pro Bowling bg tiles banking bit
|
||||||
|
|
||||||
SET_TILE_INFO(8, tile, 0, 0);
|
SET_TILE_INFO(8, tile, 0, 0);
|
||||||
}
|
}
|
||||||
@ -383,13 +389,13 @@ static void prosport_draw_sprites(running_machine *machine, bitmap_t *bitmap, co
|
|||||||
sy2=sy+16;
|
sy2=sy+16;
|
||||||
}
|
}
|
||||||
|
|
||||||
drawgfx_transpen(bitmap,cliprect,machine->gfx[gfx_region],
|
drawgfx_transpen(bitmap,cliprect,machine->gfx[gfx_region],
|
||||||
code,
|
code,
|
||||||
color,
|
color,
|
||||||
fx,fy,
|
fx,fy,
|
||||||
sx,sy,0);
|
sx,sy,0);
|
||||||
if (multi)
|
if (multi)
|
||||||
drawgfx_transpen(bitmap,cliprect,machine->gfx[gfx_region],
|
drawgfx_transpen(bitmap,cliprect,machine->gfx[gfx_region],
|
||||||
code2,
|
code2,
|
||||||
color,
|
color,
|
||||||
fx,fy,
|
fx,fy,
|
||||||
@ -468,7 +474,7 @@ static void prosoccr_draw_sprites(running_machine *machine, bitmap_t *bitmap, co
|
|||||||
fy = spriteram[offs+0] & 2;
|
fy = spriteram[offs+0] & 2;
|
||||||
|
|
||||||
drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
|
drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
|
||||||
code,
|
code,
|
||||||
0,
|
0,
|
||||||
fx,fy,
|
fx,fy,
|
||||||
sx,sy,0);
|
sx,sy,0);
|
||||||
@ -502,7 +508,7 @@ VIDEO_UPDATE( prosport )
|
|||||||
|
|
||||||
offs = 0;
|
offs = 0;
|
||||||
/* TODO: what's bits 0 and 2 for? Internal scrolling state? */
|
/* TODO: what's bits 0 and 2 for? Internal scrolling state? */
|
||||||
scrolly = ((deco16_io_ram[0] & 0x8)<<5);
|
scrolly = ((deco16_io_ram[0] & 0x8)<<5);
|
||||||
scrollx = ((deco16_io_ram[0] & 0x2)<<7) | (deco16_io_ram[1]);
|
scrollx = ((deco16_io_ram[0] & 0x2)<<7) | (deco16_io_ram[1]);
|
||||||
|
|
||||||
tilemap_set_scrolly(background_tilemap,0,scrolly);
|
tilemap_set_scrolly(background_tilemap,0,scrolly);
|
||||||
|
Loading…
Reference in New Issue
Block a user