diff options
Diffstat (limited to 'src/emu/machine/s3c2440.c')
-rw-r--r-- | src/emu/machine/s3c2440.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/emu/machine/s3c2440.c b/src/emu/machine/s3c2440.c index 6d072e78f69..7019ce89bf8 100644 --- a/src/emu/machine/s3c2440.c +++ b/src/emu/machine/s3c2440.c @@ -75,12 +75,24 @@ DEVICE_START( s3c2440 ) const device_type S3C2440 = &device_creator<s3c2440_device>; s3c2440_device::s3c2440_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S3C2440, "Samsung S3C2440", tag, owner, clock, "s3c2440", __FILE__) + : device_t(mconfig, S3C2440, "Samsung S3C2440", tag, owner, clock, "s3c2440", __FILE__), + m_palette(*this) { m_token = global_alloc_clear(s3c24xx_t); } //------------------------------------------------- +// static_set_palette_tag: Set the tag of the +// palette device +//------------------------------------------------- + +void s3c2440_device::static_set_palette_tag(device_t &device, const char *tag) +{ + downcast<s3c2440_device &>(device).m_palette.set_tag(tag); +} + + +//------------------------------------------------- // device_config_complete - perform any // operations now that the configuration is // complete @@ -96,6 +108,8 @@ void s3c2440_device::device_config_complete() void s3c2440_device::device_start() { + s3c24xx_t *s3c24xx = get_token(this); + s3c24xx->m_palette = m_palette; DEVICE_START_NAME( s3c2440 )(this); } |