galpani2, swap x and y scroll on ind8 layer (nw)

This commit is contained in:
mamehaze 2015-02-14 15:09:40 +00:00
parent ada12e8f06
commit 57af55aa8c
2 changed files with 8 additions and 6 deletions

View File

@ -358,12 +358,12 @@ static ADDRESS_MAP_START( galpani2_mem1, AS_PROGRAM, 16, galpani2_state )
// AM_RANGE(0x390000, 0x3901ff) AM_WRITENOP // ? at startup of service mode
AM_RANGE(0x400000, 0x43ffff) AM_RAM AM_SHARE("bg8.0") // Background 0
AM_RANGE(0x440000, 0x440001) AM_RAM AM_SHARE("bg8_scrollx.0") // Background 0 Scroll X
AM_RANGE(0x480000, 0x480001) AM_RAM AM_SHARE("bg8_scrolly.0") // Background 0 Scroll Y
AM_RANGE(0x440000, 0x440001) AM_RAM AM_SHARE("bg8_scrolly.0") // Background 0 Scroll Y
AM_RANGE(0x480000, 0x480001) AM_RAM AM_SHARE("bg8_scrollx.0") // Background 0 Scroll X
// AM_RANGE(0x4c0000, 0x4c0001) AM_WRITENOP // ? 0 at startup only
AM_RANGE(0x500000, 0x53ffff) AM_RAM AM_SHARE("bg8.1") // Background 1
AM_RANGE(0x540000, 0x540001) AM_RAM AM_SHARE("bg8_scrollx.1") // Background 1 Scroll X
AM_RANGE(0x580000, 0x580001) AM_RAM AM_SHARE("bg8_scrolly.1") // Background 1 Scroll Y
AM_RANGE(0x540000, 0x540001) AM_RAM AM_SHARE("bg8_scrolly.1") // Background 1 Scroll Y
AM_RANGE(0x580000, 0x580001) AM_RAM AM_SHARE("bg8_scrollx.1") // Background 1 Scroll X
// AM_RANGE(0x5c0000, 0x5c0001) AM_WRITENOP // ? 0 at startup only
AM_RANGE(0x540572, 0x540573) AM_READNOP // ? galpani2 at F0A4

View File

@ -90,10 +90,12 @@ void galpani2_state::video_start()
// based on videos these 8-bit layers actually get *blended* against the RGB555 layer
// it should be noted that in the layer at 0x500000 the upper 8 bits are set too, this could be related
// scrolling is based on sync between sprite and this layer during the 'keyhole viewer' between rounds (use cheats)
void galpani2_state::copybg8(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer)
{
int x = - ( *m_bg8_scrollx[layer] + 0x200 - 0x0f5 );
int y = - ( *m_bg8_scrolly[layer] + 0x200 - 0x1be );
int x = + ( *m_bg8_scrollx[layer] + 0x200 - 0x1be );
int y = + ( *m_bg8_scrolly[layer] + 0x200 - 0x0f5 );
UINT16* ram = m_bg8[layer];
const pen_t *clut = &m_bg8palette->pen(0);