summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/gp9001.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/gp9001.h')
-rw-r--r--src/mame/video/gp9001.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/gp9001.h b/src/mame/video/gp9001.h
index 0c832b50674..2f515b3e053 100644
--- a/src/mame/video/gp9001.h
+++ b/src/mame/video/gp9001.h
@@ -7,7 +7,7 @@
#pragma once
#define MCFG_GP9001_VINT_CALLBACK(_devcb) \
- devcb = &gp9001vdp_device::set_vint_out_cb(*device, DEVCB_##_devcb);
+ devcb = &downcast<gp9001vdp_device &>(*device).set_vint_out_cb(DEVCB_##_devcb);
class gp9001vdp_device : public device_t,
public device_gfx_interface,
@@ -22,7 +22,7 @@ class gp9001vdp_device : public device_t,
public:
gp9001vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template<class Object> static devcb_base &set_vint_out_cb(device_t &device, Object &&obj) { return downcast<gp9001vdp_device &>(device).m_vint_out_cb.set_callback(std::forward<Object>(obj)); }
+ template<class Object> devcb_base &set_vint_out_cb(Object &&obj) { return m_vint_out_cb.set_callback(std::forward<Object>(obj)); }
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, const uint8_t* primap );
void gp9001_draw_custom_tilemap( bitmap_ind16 &bitmap, tilemap_t* tilemap, const uint8_t* priremap, const uint8_t* pri_enable );