summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/vs920a.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/vs920a.h')
-rw-r--r--src/mame/video/vs920a.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mame/video/vs920a.h b/src/mame/video/vs920a.h
index 0779c5e7891..8607329d5a0 100644
--- a/src/mame/video/vs920a.h
+++ b/src/mame/video/vs920a.h
@@ -9,7 +9,7 @@
class vs920a_text_tilemap_device : public device_t
{
public:
- void set_gfxdecode_tag(const char *tag) { m_gfxdecode.set_tag(tag); }
+ template <typename T> void set_gfxdecode_tag(T &&tag) { m_gfxdecode.set_tag(std::forward<T>(tag)); }
void set_gfx_region(int gfxregion) { m_gfx_region = gfxregion; }
vs920a_text_tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
@@ -39,11 +39,4 @@ private:
DECLARE_DEVICE_TYPE(VS920A, vs920a_text_tilemap_device)
-
-#define MCFG_VS920A_GFX_REGION(_region) \
- downcast<vs920a_text_tilemap_device &>(*device).set_gfx_region(_region);
-
-#define MCFG_VS920A_GFXDECODE(_gfxtag) \
- downcast<vs920a_text_tilemap_device &>(*device).set_gfxdecode_tag(_gfxtag);
-
#endif // MAME_VIDEO_VS920A_H