diff options
Diffstat (limited to 'src/emu/crsshair.cpp')
-rw-r--r-- | src/emu/crsshair.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/crsshair.cpp b/src/emu/crsshair.cpp index 027d8828e32..0e570bb9eaf 100644 --- a/src/emu/crsshair.cpp +++ b/src/emu/crsshair.cpp @@ -123,7 +123,7 @@ render_crosshair::render_crosshair(running_machine &machine, int player) , m_time(0) { // for now, use the main screen - m_screen = screen_device_iterator(machine.root_device()).first(); + m_screen = screen_device_enumerator(machine.root_device()).first(); } @@ -377,8 +377,8 @@ crosshair_manager::crosshair_manager(running_machine &machine) machine.configuration().config_register("crosshairs", config_load_delegate(&crosshair_manager::config_load, this), config_save_delegate(&crosshair_manager::config_save, this)); /* register the animation callback */ - screen_device *first_screen = screen_device_iterator(machine.root_device()).first(); - if (first_screen != nullptr) + screen_device *first_screen = screen_device_enumerator(machine.root_device()).first(); + if (first_screen) first_screen->register_vblank_callback(vblank_state_delegate(&crosshair_manager::animate, this)); } |