diff options
Diffstat (limited to 'src/mame/video/ladybug.h')
-rw-r--r-- | src/mame/video/ladybug.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mame/video/ladybug.h b/src/mame/video/ladybug.h index 72ad9f0c30f..a747e490434 100644 --- a/src/mame/video/ladybug.h +++ b/src/mame/video/ladybug.h @@ -8,17 +8,13 @@ #include "screen.h" -#define MCFG_LADYBUG_VIDEO_GFXDECODE(tag) \ - downcast<ladybug_video_device &>(*device).set_gfxdecode_tag(tag); - - // used by ladybug and sraider class ladybug_video_device : public device_t { public: ladybug_video_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); - void set_gfxdecode_tag(char const *tag) { m_gfxdecode.set_tag(tag); } + template <typename T> void set_gfxdecode_tag(T &&tag) { m_gfxdecode.set_tag(std::forward<T>(tag)); } DECLARE_READ8_MEMBER(spr_r) { return m_spr_ram[offset & 0x03ff]; } DECLARE_WRITE8_MEMBER(spr_w) { m_spr_ram[offset & 0x03ff] = data; } |