From b380514764cf857469bae61c11143a19f79a74c5 Mon Sep 17 00:00:00 2001 From: andreasnaive Date: Mon, 25 Mar 2019 23:13:40 +0100 Subject: Revert "conflict resolution (nw)" This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705. --- src/devices/video/saa5050.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/devices/video/saa5050.h') diff --git a/src/devices/video/saa5050.h b/src/devices/video/saa5050.h index a9bb680f347..6e1aa5cec6a 100644 --- a/src/devices/video/saa5050.h +++ b/src/devices/video/saa5050.h @@ -29,6 +29,21 @@ #pragma once + + +//************************************************************************** +// INTERFACE CONFIGURATION MACROS +//************************************************************************** + +#define MCFG_SAA5050_D_CALLBACK(_read) \ + downcast(*device).set_d_rd_callback(DEVCB_##_read); + + +#define MCFG_SAA5050_SCREEN_SIZE(_cols, _rows, _size) \ + downcast(*device).set_screen_size(_cols, _rows, _size); + + + //************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -43,6 +58,7 @@ public: void set_screen_size(int cols, int rows, int size) { m_cols = cols; m_rows = rows; m_size = size; } + template devcb_base &set_d_rd_callback(Object &&cb) { return m_read_d.set_callback(std::forward(cb)); } auto d_cb() { return m_read_d.bind(); } // optional information overrides -- cgit v1.2.3