summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/polyplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/polyplay.c')
-rw-r--r--src/mame/video/polyplay.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/mame/video/polyplay.c b/src/mame/video/polyplay.c
index f483c659ded..918fa18dab3 100644
--- a/src/mame/video/polyplay.c
+++ b/src/mame/video/polyplay.c
@@ -13,19 +13,19 @@
#include "includes/polyplay.h"
-PALETTE_INIT( polyplay )
+void polyplay_state::palette_init()
{
- palette_set_color(machine,0,MAKE_RGB(0x00,0x00,0x00));
- palette_set_color(machine,1,MAKE_RGB(0xff,0xff,0xff));
-
- palette_set_color(machine,2,MAKE_RGB(0x00,0x00,0x00));
- palette_set_color(machine,3,MAKE_RGB(0xff,0x00,0x00));
- palette_set_color(machine,4,MAKE_RGB(0x00,0xff,0x00));
- palette_set_color(machine,5,MAKE_RGB(0xff,0xff,0x00));
- palette_set_color(machine,6,MAKE_RGB(0x00,0x00,0xff));
- palette_set_color(machine,7,MAKE_RGB(0xff,0x00,0xff));
- palette_set_color(machine,8,MAKE_RGB(0x00,0xff,0xff));
- palette_set_color(machine,9,MAKE_RGB(0xff,0xff,0xff));
+ palette_set_color(machine(),0,MAKE_RGB(0x00,0x00,0x00));
+ palette_set_color(machine(),1,MAKE_RGB(0xff,0xff,0xff));
+
+ palette_set_color(machine(),2,MAKE_RGB(0x00,0x00,0x00));
+ palette_set_color(machine(),3,MAKE_RGB(0xff,0x00,0x00));
+ palette_set_color(machine(),4,MAKE_RGB(0x00,0xff,0x00));
+ palette_set_color(machine(),5,MAKE_RGB(0xff,0xff,0x00));
+ palette_set_color(machine(),6,MAKE_RGB(0x00,0x00,0xff));
+ palette_set_color(machine(),7,MAKE_RGB(0xff,0x00,0xff));
+ palette_set_color(machine(),8,MAKE_RGB(0x00,0xff,0xff));
+ palette_set_color(machine(),9,MAKE_RGB(0xff,0xff,0xff));
}
@@ -39,10 +39,9 @@ WRITE8_MEMBER(polyplay_state::polyplay_characterram_w)
}
}
-VIDEO_START( polyplay )
+void polyplay_state::video_start()
{
- polyplay_state *state = machine.driver_data<polyplay_state>();
- machine.gfx[1]->set_source(state->m_characterram);
+ machine().gfx[1]->set_source(m_characterram);
}