Fixed foreground color offsets in Tryout, game colors should now be 100% accurate. [Angelo Salese]

This commit is contained in:
Angelo Salese 2009-05-24 15:45:58 +00:00
parent b69b61e2d8
commit 90368f3ba4
2 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,6 @@
TODO:
- Fix the scroll properly
- Some colors problems
- Fix sprite position in cocktail mode
****************************************************************/

View File

@ -42,14 +42,14 @@ PALETTE_INIT( tryout )
static TILE_GET_INFO( get_fg_tile_info )
{
int code, attr;
int code, attr, color;
code = videoram[tile_index];
attr = videoram[tile_index + 0x400];
code |= ((attr & 0x03) << 8);
color = ((attr & 0x4)>>2)+6;
SET_TILE_INFO(0, code, 6, 0);
SET_TILE_INFO(0, code, color, 0);
}
static TILE_GET_INFO( get_bg_tile_info )