diff options
author | 2012-09-13 11:15:32 +0000 | |
---|---|---|
committer | 2012-09-13 11:15:32 +0000 | |
commit | 219e664785890f52079bae7e74543920d638796a (patch) | |
tree | 774d1ab1e7d87ae4d2c1ef335dcef24a28a7d7e8 /src/mess/drivers/apricot.c | |
parent | af9a5e817d3eefdda79e801056b29167ecbcdef9 (diff) |
Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew)
Diffstat (limited to 'src/mess/drivers/apricot.c')
-rw-r--r-- | src/mess/drivers/apricot.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mess/drivers/apricot.c b/src/mess/drivers/apricot.c index a8a0c9dcb76..91ff09783c0 100644 --- a/src/mess/drivers/apricot.c +++ b/src/mess/drivers/apricot.c @@ -63,6 +63,7 @@ public: bool m_display_enabled; required_shared_ptr<UINT16> m_screen_buffer; DECLARE_DRIVER_INIT(apricot); + virtual void palette_init(); }; @@ -309,11 +310,11 @@ INPUT_PORTS_END PALETTE ***************************************************************************/ -static PALETTE_INIT( apricot ) +void apricot_state::palette_init() { - palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0x00)); /* black */ - palette_set_color(machine, 1, MAKE_RGB(0x00, 0x7f, 0x00)); /* low intensity */ - palette_set_color(machine, 2, MAKE_RGB(0x00, 0xff, 0x00)); /* high intensitiy */ + palette_set_color(machine(), 0, MAKE_RGB(0x00, 0x00, 0x00)); /* black */ + palette_set_color(machine(), 1, MAKE_RGB(0x00, 0x7f, 0x00)); /* low intensity */ + palette_set_color(machine(), 2, MAKE_RGB(0x00, 0xff, 0x00)); /* high intensitiy */ } @@ -377,7 +378,6 @@ static MACHINE_CONFIG_START( apricot, apricot_state ) MCFG_SCREEN_REFRESH_RATE(72) MCFG_SCREEN_UPDATE_STATIC(apricot) MCFG_PALETTE_LENGTH(3) - MCFG_PALETTE_INIT(apricot) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") |