diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-04-05 07:44:51 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-04-05 07:44:51 +0000 |
commit | 194397db29bbf4b5bbf1f22c8fb5a16c39fffa06 (patch) | |
tree | 5e6e746191732095345bc7a8ffa6fd4645e530fd /src/mame/video/system1.c | |
parent | 82a1191455181e8a74836a6f597a23f288be82d0 (diff) |
Moved all drivers to using the paletteram helpers defined in the
driver_device base class. The palette base is now specified via an
AM_SHARE of "paletteram" or "paletteram2". The driver_device base
class now finds these pointers and places them in
m_generic_paletteram_8/_16/_32 and m_generic_paletteram2_8/_16/_32.
Removed machine.generic.paletteram*, and machine.generic entirely.
Removed AM_BASE_GENERIC/AM_SIZE_GENERIC as they don't apply anymore.
Changed required_/optional_shared_ptr to support set_target with
base and size for manually configuring a shared pointer, and a new
allocate method for dynamically allocating (and registering the
memory for save states).
A few subsequent cleanups are coming related to this, but wanted
to get this in before the next modern push.
Diffstat (limited to 'src/mame/video/system1.c')
-rw-r--r-- | src/mame/video/system1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/video/system1.c b/src/mame/video/system1.c index b8b784ab71a..0817506ea8a 100644 --- a/src/mame/video/system1.c +++ b/src/mame/video/system1.c @@ -324,7 +324,8 @@ WRITE8_HANDLER( system1_paletteram_w ) accurate to +/- .003K ohms. */ - space->machine().generic.paletteram.u8[offset] = data; + system1_state *state = space->machine().driver_data<system1_state>(); + state->m_generic_paletteram_8[offset] = data; if (color_prom != NULL) { |