mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
wardner.cpp: fixed palette regression (nw)
This commit is contained in:
parent
0b6bcaf1a9
commit
dea1cbd721
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user