mirror of
https://github.com/holub/mame
synced 2025-05-18 19:49:35 +03:00
Fix specifying device-based VBLANK callbacks.
This commit is contained in:
parent
2a04855fb3
commit
8d0ec85106
@ -396,10 +396,10 @@ typedef device_type_iterator<&device_creator<screen_device>, screen_device> scre
|
||||
screen_device::static_set_screen_vblank(*device, screen_vblank_delegate(&screen_vblank_##_func, "screen_vblank_" #_func)); \
|
||||
|
||||
#define MCFG_SCREEN_VBLANK_DRIVER(_class, _method) \
|
||||
screen_device::static_set_screen_vblank(*device, screen_vblank_delegate(&_class::_method, #_class "::" #_method, NULL)); \
|
||||
screen_device::static_set_screen_vblank(*device, screen_vblank_delegate(&_class::_method, #_class "::" #_method, NULL, (_class *)0)); \
|
||||
|
||||
#define MCFG_SCREEN_VBLANK_DEVICE(_device, _class, _method) \
|
||||
screen_device::static_set_screen_vblank(*device, screen_vblank_delegate(&_class::_method, #_class "::" #_method, _device)); \
|
||||
screen_device::static_set_screen_vblank(*device, screen_vblank_delegate(&_class::_method, #_class "::" #_method, _device, (_class *)0)); \
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user