diff options
Diffstat (limited to 'src/devices/video/crtc_ega.cpp')
-rw-r--r-- | src/devices/video/crtc_ega.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/video/crtc_ega.cpp b/src/devices/video/crtc_ega.cpp index b7318d33f99..01ee629ad43 100644 --- a/src/devices/video/crtc_ega.cpp +++ b/src/devices/video/crtc_ega.cpp @@ -201,8 +201,8 @@ void crtc_ega_device::recompute_parameters(bool postload) LOG("CRTC_EGA config screen: HTOTAL: 0x%x VTOTAL: 0x%x MAX_X: 0x%x MAX_Y: 0x%x HSYNC: 0x%x-0x%x VSYNC: 0x%x-0x%x Freq: %ffps\n", horiz_pix_total, vert_pix_total, max_visible_x, max_visible_y, hsync_on_pos, hsync_off_pos - 1, vsync_on_pos, vsync_off_pos - 1, 1 / ATTOSECONDS_TO_DOUBLE(refresh)); - if ( m_screen != nullptr ) - m_screen->configure(horiz_pix_total, vert_pix_total, visarea, refresh); + if (has_screen()) + screen().configure(horiz_pix_total, vert_pix_total, visarea, refresh); m_has_valid_parameters = true; } @@ -355,8 +355,8 @@ void crtc_ega_device::handle_line_timer() /* also update the cursor state now */ update_cursor_state(); - if (m_screen != nullptr) - m_screen->reset_origin(); + if (has_screen()) + screen().reset_origin(); } if ( m_line_enable_ff ) |