prosport: fixed tile flip y (in golf game)

This commit is contained in:
Roberto Zandona 2009-08-05 22:03:24 +00:00
parent d94a805ab4
commit 00d8b29d9c

View File

@ -82,10 +82,16 @@ static TILE_GET_INFO( prosport_get_back_tile_info )
{
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;
// if(!(tile & 0x08)) { tile+=0x10; }
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);