Fixed: 03622: solomon, solomonj: Graphics Bugs

This commit is contained in:
Pierpaolo Prazzoli 2010-01-02 15:46:37 +00:00
parent 22c5856130
commit 4935467518
2 changed files with 3 additions and 2 deletions

View File

@ -67,6 +67,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0xe603, 0xe603) AM_READ(solomon_0xe603_r)
AM_RANGE(0xe604, 0xe604) AM_READ_PORT("DSW1")
AM_RANGE(0xe605, 0xe605) AM_READ_PORT("DSW2")
AM_RANGE(0xe606, 0xe606) AM_READNOP /* watchdog? */
AM_RANGE(0xe600, 0xe600) AM_WRITE(interrupt_enable_w)
AM_RANGE(0xe604, 0xe604) AM_WRITE(solomon_flipscreen_w)
AM_RANGE(0xe800, 0xe800) AM_WRITE(solomon_sh_command_w)

View File

@ -9,7 +9,7 @@ static tilemap_t *bg_tilemap, *fg_tilemap;
WRITE8_HANDLER( solomon_videoram_w )
{
solomon_colorram[offset] = data;
solomon_videoram[offset] = data;
tilemap_mark_tile_dirty(fg_tilemap, offset);
}
@ -53,7 +53,7 @@ static TILE_GET_INFO( get_bg_tile_info )
static TILE_GET_INFO( get_fg_tile_info )
{
int attr = solomon_colorram[tile_index];
int code = solomon_colorram[tile_index] + 256 * (attr & 0x07);
int code = solomon_videoram[tile_index] + 256 * (attr & 0x07);
int color = (attr & 0x70) >> 4;
SET_TILE_INFO(0, code, color, 0);