From 45e0963e6c4c429542a2e61ff8cb0654bd2af309 Mon Sep 17 00:00:00 2001 From: RobertoFresca Date: Thu, 18 Feb 2016 15:45:09 -0300 Subject: [PATCH] Super Nove: Better graphics decode for GFX1. --- src/mame/drivers/goldstar.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/goldstar.cpp b/src/mame/drivers/goldstar.cpp index 99f5d8bfb6d..ddad2c0c791 100644 --- a/src/mame/drivers/goldstar.cpp +++ b/src/mame/drivers/goldstar.cpp @@ -6752,6 +6752,16 @@ static const gfx_layout sangho_tilelayout = 128*8 /* every char takes 128 consecutive bytes */ }; +static const gfx_layout super9_charlayout = +{ + 8,8, /* 8*8 characters */ + 4096, /* 4096 characters */ + 3, /* 3 bits per pixel */ + { 2, 4, 6 }, /* the bitplanes are packed in one byte */ + { 0*8+0, 0*8+1, 1*8+0, 1*8+1, 2*8+0, 2*8+1, 3*8+0, 3*8+1 }, + { 0*32, 4*32, 2*32, 6*32, 1*32, 5*32, 3*32, 7*32 }, + 32*8 /* every char takes 32 consecutive bytes */ +}; static GFXDECODE_START( goldstar ) @@ -6852,6 +6862,11 @@ static GFXDECODE_START( sangho ) */ GFXDECODE_END +static GFXDECODE_START( super9 ) + GFXDECODE_ENTRY( "gfx1", 0, super9_charlayout, 0, 16 ) + GFXDECODE_ENTRY( "gfx2", 0, tilelayout, 128, 8 ) +GFXDECODE_END + static const gfx_layout tiles8x32_4bpp_layout = { @@ -7153,12 +7168,12 @@ static MACHINE_CONFIG_START( super9, goldstar_state ) MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar) MCFG_SCREEN_PALETTE("palette") - MCFG_GFXDECODE_ADD("gfxdecode", "palette", goldstar) + MCFG_GFXDECODE_ADD("gfxdecode", "palette", super9) MCFG_PALETTE_ADD("palette", 256) MCFG_PALETTE_FORMAT(BBGGGRRR) MCFG_NVRAM_ADD_1FILL("nvram") - MCFG_VIDEO_START_OVERRIDE(goldstar_state,goldstar) + MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono")