trunk/src/mess/video/k1ge.h
r22834 | r22835 | |
16 | 16 | MCFG_DEVICE_ADD( _tag, K2GE, _clock ) \ |
17 | 17 | k1ge_device::static_set_screen( *device, _screen ); \ |
18 | 18 | k1ge_device::static_set_vram( *device, _vram ); \ |
19 | | devcb = &k1ge_device::static_set_vblank_callback( *device, DEVCB2_##_vblank ); \ |
| 19 | devcb = &k1ge_device::static_set_vblank_callback( *device, DEVCB2_##_vblank ); \ |
20 | 20 | devcb = &k1ge_device::static_set_hblank_callback( *device, DEVCB2_##_hblank ); |
21 | 21 | |
22 | 22 | |
r22834 | r22835 | |
34 | 34 | // Static methods |
35 | 35 | static void static_set_screen(device_t &device, const char *screen_name) { downcast<k1ge_device &>(device).m_screen_tag = screen_name; } |
36 | 36 | static void static_set_vram(device_t &device, const char *vram_name) { downcast<k1ge_device &>(device).m_vram_tag = vram_name; } |
37 | | template<class _Object> static devcb2_base &static_set_vblank_callback(device_t &device, _Object object) { return downcast<k1ge_device &>(device).m_vblank_pin_w.set_callback(object); } |
38 | | template<class _Object> static devcb2_base &static_set_hblank_callback(device_t &device, _Object object) { return downcast<k1ge_device &>(device).m_hblank_pin_w.set_callback(object); } |
| 37 | template<class _Object> static devcb2_base &static_set_vblank_callback(device_t &device, _Object object) { return downcast<k1ge_device &>(device).m_vblank_pin_w.set_callback(object); } |
| 38 | template<class _Object> static devcb2_base &static_set_hblank_callback(device_t &device, _Object object) { return downcast<k1ge_device &>(device).m_hblank_pin_w.set_callback(object); } |
39 | 39 | |
40 | 40 | static const int K1GE_SCREEN_HEIGHT = 199; |
41 | 41 | protected: |