summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/segaic16.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/segaic16.h')
-rw-r--r--src/mame/video/segaic16.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/segaic16.h b/src/mame/video/segaic16.h
index 15554d3f3b5..2dc319482e7 100644
--- a/src/mame/video/segaic16.h
+++ b/src/mame/video/segaic16.h
@@ -13,7 +13,7 @@
typedef device_delegate<void (int, uint16_t*, uint16_t*, uint16_t*, uint16_t*)> segaic16_video_pagelatch_delegate;
#define MCFG_SEGAIC16_VIDEO_SET_PAGELATCH_CB( _class, _method) \
- segaic16_video_device::set_pagelatch_cb(*device, segaic16_video_pagelatch_delegate(&_class::_method, #_class "::" #_method, nullptr, (_class *)nullptr));
+ downcast<segaic16_video_device &>(*device).set_pagelatch_cb(segaic16_video_pagelatch_delegate(&_class::_method, #_class "::" #_method, nullptr, (_class *)nullptr));
/*************************************
@@ -101,9 +101,9 @@ public:
segaic16_video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // static configuration
- static void static_set_gfxdecode_tag(device_t &device, const char *tag);
- static void set_pagelatch_cb(device_t &device,segaic16_video_pagelatch_delegate newtilecb);
+ // configuration
+ void set_gfxdecode_tag(const char *tag);
+ void set_pagelatch_cb(segaic16_video_pagelatch_delegate newtilecb);
uint8_t m_display_enable;
optional_shared_ptr<uint16_t> m_tileram;
@@ -165,6 +165,6 @@ DECLARE_DEVICE_TYPE(SEGAIC16VID, segaic16_video_device)
MCFG_DEVICE_ADD(_tag, SEGAIC16VID, 0)
#define MCFG_SEGAIC16VID_GFXDECODE(_gfxtag) \
- segaic16_video_device::static_set_gfxdecode_tag(*device, "^" _gfxtag);
+ downcast<segaic16_video_device &>(*device).set_gfxdecode_tag("^" _gfxtag);
#endif // MAME_VIDEO_SEGAIC16_H