summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/grchamp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/grchamp.c')
-rw-r--r--src/mame/video/grchamp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/grchamp.c b/src/mame/video/grchamp.c
index aa1de38e284..9f647734be2 100644
--- a/src/mame/video/grchamp.c
+++ b/src/mame/video/grchamp.c
@@ -14,7 +14,7 @@
PALETTE_INIT( grchamp )
{
- const UINT8 *color_prom = machine.region("proms")->base();
+ const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
static const int resistances[3] = { 100, 270, 470 };
double rweights[3], gweights[3], bweights[2];
grchamp_state *state = machine.driver_data<grchamp_state>();
@@ -245,7 +245,7 @@ static void draw_objects(running_machine &machine, grchamp_state *state, int y,
*/
- const UINT8 *prom = machine.region("proms")->base() + 0x20;
+ const UINT8 *prom = machine.root_device().memregion("proms")->base() + 0x20;
const gfx_element *gfx;
int change = (state->m_cpu0_out[0] & 0x20) << 3;
int num;
@@ -364,9 +364,9 @@ SCREEN_UPDATE_RGB32( grchamp )
};
grchamp_state *state = screen.machine().driver_data<grchamp_state>();
- const UINT8 *amedata = screen.machine().region("gfx5")->base();
- const UINT8 *headdata = screen.machine().region("gfx6")->base();
- const UINT8 *pldata = screen.machine().region("gfx7")->base();
+ const UINT8 *amedata = screen.machine().root_device().memregion("gfx5")->base();
+ const UINT8 *headdata = screen.machine().root_device().memregion("gfx6")->base();
+ const UINT8 *pldata = state->memregion("gfx7")->base();
bitmap_ind16 &lpixmap = state->m_left_tilemap->pixmap();
bitmap_ind16 &rpixmap = state->m_right_tilemap->pixmap();
bitmap_ind16 &cpixmap = state->m_center_tilemap->pixmap();