Previous 199869 Revisions Next

r22835 Wednesday 15th May, 2013 at 18:29:39 UTC by Wilbert Pol
spaces to tabs. (nw)
[src/mess/video]k1ge.h

trunk/src/mess/video/k1ge.h
r22834r22835
1616   MCFG_DEVICE_ADD( _tag, K2GE, _clock ) \
1717   k1ge_device::static_set_screen( *device, _screen ); \
1818   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 ); \
2020   devcb = &k1ge_device::static_set_hblank_callback( *device, DEVCB2_##_hblank );
2121
2222
r22834r22835
3434   // Static methods
3535   static void static_set_screen(device_t &device, const char *screen_name) { downcast<k1ge_device &>(device).m_screen_tag = screen_name; }
3636   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); }
3939
4040   static const int K1GE_SCREEN_HEIGHT = 199;
4141protected:

Previous 199869 Revisions Next


© 1997-2024 The MAME Team