summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author David Haywood <mamehaze@users.noreply.github.com>2016-05-02 20:39:46 +0100
committer David Haywood <mamehaze@users.noreply.github.com>2016-05-02 20:39:46 +0100
commit28eeb49676eb5550180d481b87f5a6ca86564828 (patch)
tree3d48fd97b6af55316a372eef7f30701c36087f91
parent1db114abc921f79ad26fe2ec1b11aa984927f959 (diff)
runtime tag lookup reduction (nw)
-rw-r--r--src/mame/includes/deco_mlc.h4
-rw-r--r--src/mame/video/deco_mlc.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mame/includes/deco_mlc.h b/src/mame/includes/deco_mlc.h
index e9bde7e7bb7..481734e2f2c 100644
--- a/src/mame/includes/deco_mlc.h
+++ b/src/mame/includes/deco_mlc.h
@@ -21,7 +21,8 @@ public:
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
m_palette(*this, "palette"),
- m_generic_paletteram_32(*this, "paletteram")
+ m_generic_paletteram_32(*this, "paletteram"),
+ m_gfx2(*this,"gfx2")
{ }
optional_device<deco146_device> m_deco146;
@@ -77,6 +78,7 @@ public:
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
required_shared_ptr<UINT32> m_generic_paletteram_32;
+ required_region_ptr<UINT8> m_gfx2;
DECLARE_READ16_MEMBER( sh96_protection_region_0_146_r );
DECLARE_WRITE16_MEMBER( sh96_protection_region_0_146_w );
diff --git a/src/mame/video/deco_mlc.cpp b/src/mame/video/deco_mlc.cpp
index a419d2c9846..e7fc22fbfe1 100644
--- a/src/mame/video/deco_mlc.cpp
+++ b/src/mame/video/deco_mlc.cpp
@@ -140,8 +140,8 @@ void deco_mlc_state::draw_sprites( const rectangle &cliprect, int scanline, UINT
UINT32 *index_ptr=nullptr;
int offs,fx=0,fy=0,x,y,color,colorOffset,sprite,indx,h,w,bx,by,fx1,fy1;
int xoffs,yoffs;
- UINT8 *rom = memregion("gfx2")->base() + 0x20000, *index_ptr8;
- UINT8 *rawrom = memregion("gfx2")->base();
+ UINT8 *rom = m_gfx2 + 0x20000, *index_ptr8;
+ UINT8 *rawrom = m_gfx2;
int blockIsTilemapIndex=0;
int sprite2=0,indx2=0,use8bppMode=0;
int yscale,xscale;