diff options
Diffstat (limited to 'src/devices/video/t6a04.h')
-rw-r--r-- | src/devices/video/t6a04.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/video/t6a04.h b/src/devices/video/t6a04.h index bee192f8ac6..0232ffc71a6 100644 --- a/src/devices/video/t6a04.h +++ b/src/devices/video/t6a04.h @@ -23,11 +23,10 @@ public: // construction/destruction t6a04_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - static void set_size(device_t &device, int w, int h) + void set_size(int w, int h) { - t6a04_device &dev = downcast<t6a04_device &>(device); - dev.m_width = w; - dev.m_height = h; + m_width = w; + m_height = h; } // device interface @@ -67,6 +66,6 @@ private: DECLARE_DEVICE_TYPE(T6A04, t6a04_device) #define MCFG_T6A04_SIZE(_width, _height) \ - t6a04_device::set_size(*device, _width, _height); + downcast<t6a04_device &>(*device).set_size(_width, _height); #endif // MAME_VIDEO_T6A04_H |