summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-09-04 09:07:37 +0200
committer GitHub <noreply@github.com>2018-09-04 09:07:37 +0200
commitdea1cbd7219c2ce39eec187b615308fcdb3c6c7f (patch)
treed573a6ad413cacb3db5a847d8a06edb622cdcb9a
parent0b6bcaf1a9f27a7258f1ff06291c58f9cf888474 (diff)
wardner.cpp: fixed palette regression (nw)
-rw-r--r--src/mame/drivers/wardner.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/wardner.cpp b/src/mame/drivers/wardner.cpp
index c8a5cb74491..e33e66a4364 100644
--- a/src/mame/drivers/wardner.cpp
+++ b/src/mame/drivers/wardner.cpp
@@ -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)