summaryrefslogtreecommitdiffstats
path: root/src/devices/video/saa5050.h
diff options
context:
space:
mode:
authorGravatarGravatar wilbertpol <wilbertpol@users.noreply.github.com>2018-02-25 14:18:39 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-02-25 14:18:39 +0100
commit9cc815af31f4d8a406349d35b0871328a1471e08 (patch)
tree6ade99610cf8234826cf6cd2c80ea8d4a1646439 /src/devices/video/saa5050.h
parentf07b93b0532d379eb542ca507b103e71196e9147 (diff)
de-staticify initializations for src/devices/video (#3270)
Diffstat (limited to 'src/devices/video/saa5050.h')
-rw-r--r--src/devices/video/saa5050.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/video/saa5050.h b/src/devices/video/saa5050.h
index 4d943cefd0b..a99183e5f04 100644
--- a/src/devices/video/saa5050.h
+++ b/src/devices/video/saa5050.h
@@ -36,11 +36,11 @@
//**************************************************************************
#define MCFG_SAA5050_D_CALLBACK(_read) \
- devcb = &saa5050_device::set_d_rd_callback(*device, DEVCB_##_read);
+ devcb = &downcast<saa5050_device &>(*device).set_d_rd_callback(DEVCB_##_read);
#define MCFG_SAA5050_SCREEN_SIZE(_cols, _rows, _size) \
- saa5050_device::static_set_screen_size(*device, _cols, _rows, _size);
+ downcast<saa5050_device &>(*device).set_screen_size(_cols, _rows, _size);
@@ -56,9 +56,9 @@ public:
// construction/destruction
saa5050_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- static void static_set_screen_size(device_t &device, int cols, int rows, int size) { downcast<saa5050_device &>(device).m_cols = cols; downcast<saa5050_device &>(device).m_rows = rows; downcast<saa5050_device &>(device).m_size = size; }
+ void set_screen_size(int cols, int rows, int size) { m_cols = cols; m_rows = rows; m_size = size; }
- template <class Object> static devcb_base &set_d_rd_callback(device_t &device, Object &&cb) { return downcast<saa5050_device &>(device).m_read_d.set_callback(std::forward<Object>(cb)); }
+ template <class Object> devcb_base &set_d_rd_callback(Object &&cb) { return m_read_d.set_callback(std::forward<Object>(cb)); }
// optional information overrides
virtual const tiny_rom_entry *device_rom_region() const override;