summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tnzs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/tnzs.c')
-rw-r--r--src/mame/video/tnzs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/tnzs.c b/src/mame/video/tnzs.c
index 32bf8654766..2b4d02436bb 100644
--- a/src/mame/video/tnzs.c
+++ b/src/mame/video/tnzs.c
@@ -30,15 +30,15 @@
***************************************************************************/
-PALETTE_INIT( arknoid2 )
+PALETTE_INIT_MEMBER(tnzs_state,arknoid2)
{
- const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
+ const UINT8 *color_prom = machine().root_device().memregion("proms")->base();
int i, col;
- for (i = 0; i < machine.total_colors(); i++)
+ for (i = 0; i < machine().total_colors(); i++)
{
col = (color_prom[i] << 8) + color_prom[i + 512];
- palette_set_color_rgb(machine, i, pal5bit(col >> 10), pal5bit(col >> 5), pal5bit(col >> 0));
+ palette_set_color_rgb(machine(), i, pal5bit(col >> 10), pal5bit(col >> 5), pal5bit(col >> 0));
}
}