Added helper macro for CDP1864 screen creation.

This commit is contained in:
Curt Coder 2009-10-22 10:54:28 +00:00
parent d35f31d98f
commit 102e50f9e9

View File

@ -82,6 +82,11 @@
MDRV_DEVICE_CONFIG_DATAPTR(sound_config, type, SOUND_CDP1864) \
MDRV_DEVICE_CONFIG(_config)
#define MDRV_CDP1864_SCREEN_ADD(_tag, _clock) \
MDRV_SCREEN_ADD(_tag, RASTER) \
MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) \
MDRV_SCREEN_RAW_PARAMS(_clock, CDP1864_SCREEN_WIDTH, CDP1864_HBLANK_END, CDP1864_HBLANK_START, CDP1864_TOTAL_SCANLINES, CDP1864_SCANLINE_VBLANK_END, CDP1864_SCANLINE_VBLANK_START)
#define CDP1864_INTERFACE(name) \
const cdp1864_interface (name) =