diff options
Diffstat (limited to 'src/devices/video/tms34061.h')
-rw-r--r-- | src/devices/video/tms34061.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/video/tms34061.h b/src/devices/video/tms34061.h index ab5aaa652fd..c00c8547965 100644 --- a/src/devices/video/tms34061.h +++ b/src/devices/video/tms34061.h @@ -16,13 +16,13 @@ #define MCFG_TMS34061_ROWSHIFT(_shift) \ - tms34061_device::set_rowshift(*device, _shift); + downcast<tms34061_device &>(*device).set_rowshift(_shift); #define MCFG_TMS34061_VRAM_SIZE(_size) \ - tms34061_device::set_vram_size(*device, _size); + downcast<tms34061_device &>(*device).set_vram_size(_size); #define MCFG_TMS34061_INTERRUPT_CB(_devcb) \ - devcb = &tms34061_device::set_interrupt_callback(*device, DEVCB_##_devcb); + devcb = &downcast<tms34061_device &>(*device).set_interrupt_callback(DEVCB_##_devcb); @@ -44,9 +44,9 @@ public: // construction/destruction tms34061_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - static void set_rowshift(device_t &device, uint8_t rowshift) { downcast<tms34061_device &>(device).m_rowshift = rowshift; } - static void set_vram_size(device_t &device, uint32_t vramsize) { downcast<tms34061_device &>(device).m_vramsize = vramsize; } - template <class Object> static devcb_base &set_interrupt_callback(device_t &device, Object &&cb) { return downcast<tms34061_device &>(device).m_interrupt_cb.set_callback(std::forward<Object>(cb)); } + void set_rowshift(uint8_t rowshift) { m_rowshift = rowshift; } + void set_vram_size(uint32_t vramsize) { m_vramsize = vramsize; } + template <class Object> devcb_base &set_interrupt_callback(Object &&cb) { return m_interrupt_cb.set_callback(std::forward<Object>(cb)); } /* reads/writes to the 34061 */ uint8_t read(address_space &space, int col, int row, int func); |