wardner.cpp: fixed palette regression (nw)

This commit is contained in:
Ivan Vangelista 2018-09-04 09:07:37 +02:00 committed by GitHub
parent 0b6bcaf1a9
commit dea1cbd721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ Supported games:
Notes:
Basically the same video and machine hardware as Flying Shark,
except for the Main CPU which is a Z80 here.
See twincobr.c machine and video drivers to complete the
See twincobr.cpp machine and video drivers to complete the
hardware setup.
To enter the "test mode", press START1 when the grid is displayed.
Press 0 (actually P1 button 3) on startup to skip some video RAM tests
@ -151,6 +151,10 @@ public:
void init_wardner();
protected:
virtual void driver_start() override;
virtual void machine_reset() override;
private:
required_device<address_map_bank_device> m_membank;
@ -163,9 +167,6 @@ private:
void main_program_map(address_map &map);
void sound_io_map(address_map &map);
void sound_program_map(address_map &map);
virtual void driver_start() override;
virtual void machine_reset() override;
};
@ -367,7 +368,7 @@ GFXDECODE_END
void wardner_state::driver_start()
{
/* Save-State stuff in src/machine/twincobr.c */
/* Save-State stuff in src/machine/twincobr.cpp */
twincobr_driver_savestate();
}
@ -431,7 +432,7 @@ MACHINE_CONFIG_START(wardner_state::wardner)
m_screen->set_palette(m_palette);
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_wardner)
MCFG_PALETTE_ADD("palette", 1792)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
MCFG_VIDEO_START_OVERRIDE(wardner_state,toaplan0)