diff --git a/src/mame/drivers/deco_ld.c b/src/mame/drivers/deco_ld.c index b091291e7ab..37bd42e5114 100644 --- a/src/mame/drivers/deco_ld.c +++ b/src/mame/drivers/deco_ld.c @@ -480,6 +480,7 @@ static MACHINE_CONFIG_START( rblaster, deco_ld_state ) MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc") MCFG_GFXDECODE_ADD("gfxdecode", rblaster) MCFG_PALETTE_ADD("palette", 512) + MCFG_PALETTE_FORMAT(BBGGGRRR) /* sound hardware */ /* TODO: mixing */ diff --git a/src/mame/drivers/stactics.c b/src/mame/drivers/stactics.c index 77ff578c30b..fdcf4dc3db6 100644 --- a/src/mame/drivers/stactics.c +++ b/src/mame/drivers/stactics.c @@ -170,7 +170,7 @@ static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, stactics_state ) AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x0fff) AM_READ_PORT("IN1") AM_RANGE(0x6000, 0x6001) AM_MIRROR(0x0f08) AM_WRITE(stactics_coin_lockout_w) AM_RANGE(0x6002, 0x6005) AM_MIRROR(0x0f08) AM_WRITENOP - AM_RANGE(0x6006, 0x6007) AM_MIRROR(0x0f08) AM_WRITEONLY AM_SHARE("palette") + AM_RANGE(0x6006, 0x6007) AM_MIRROR(0x0f08) AM_WRITEONLY AM_SHARE("paletteram") /* AM_RANGE(0x6010, 0x6017) AM_MIRROR(0x0f08) AM_WRITE(stactics_sound_w) */ AM_RANGE(0x6016, 0x6016) AM_MIRROR(0x0f08) AM_WRITEONLY AM_SHARE("motor_on") /* Note: This overlaps rocket sound */ AM_RANGE(0x6020, 0x6027) AM_MIRROR(0x0f08) AM_WRITEONLY AM_SHARE("lamps") diff --git a/src/mame/includes/stactics.h b/src/mame/includes/stactics.h index 59d6bb582be..10d888353e8 100644 --- a/src/mame/includes/stactics.h +++ b/src/mame/includes/stactics.h @@ -12,7 +12,7 @@ class stactics_state : public driver_device public: stactics_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), - m_palette(*this, "palette"), + m_palette_val(*this, "paletteram"), m_motor_on(*this, "motor_on"), m_lamps(*this, "lamps"), m_display_buffer(*this, "display_buffer"), @@ -27,7 +27,7 @@ public: int m_horiz_pos; /* video state */ - required_shared_ptr m_palette; + required_shared_ptr m_palette_val; required_shared_ptr m_motor_on; required_shared_ptr m_lamps; required_shared_ptr m_display_buffer; diff --git a/src/mame/video/stactics.c b/src/mame/video/stactics.c index e71c076105a..e991238344f 100644 --- a/src/mame/video/stactics.c +++ b/src/mame/video/stactics.c @@ -252,8 +252,8 @@ void stactics_state::draw_background(bitmap_ind16 &bitmap, const rectangle &clip (pixel_f << 5) | (pixel_e << 6) | (pixel_d << 7) | - ((m_palette[0] & 0x01) << 8) | - ((m_palette[1] & 0x01) << 9); + ((m_palette_val[0] & 0x01) << 8) | + ((m_palette_val[1] & 0x01) << 9); /* compute the effective pixel coordinate after adjusting for the mirror movement - this is mechanical on the real machine */