diff options
Diffstat (limited to 'src/devices/video/scn2674.cpp')
-rw-r--r-- | src/devices/video/scn2674.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/video/scn2674.cpp b/src/devices/video/scn2674.cpp index 7cf956e87a0..7fedf0c4d25 100644 --- a/src/devices/video/scn2674.cpp +++ b/src/devices/video/scn2674.cpp @@ -957,15 +957,15 @@ void scn2674_device::recompute_parameters() int horiz_chars_total = (m_equalizing_constant + (m_horz_sync_width << 1)) << 1; int horiz_pix_total = horiz_chars_total * m_hpixels_per_column; int vert_pix_total = m_rows_per_screen * m_scanline_per_char_row + m_vert_front_porch + m_vert_back_porch + m_vsync_width; - attoseconds_t refresh = screen().frame_period().as_attoseconds(); + attotime refresh = screen().frame_period(); int max_visible_x = (m_character_per_row * m_hpixels_per_column) - 1; int max_visible_y = (m_rows_per_screen * m_scanline_per_char_row) - 1; - //attoseconds_t refresh = clocks_to_attotime(horiz_chars_total * vert_pix_total).as_attoseconds(); - LOGMASKED(LOG_IR, "width %u height %u max_x %u max_y %u refresh %f\n", horiz_pix_total, vert_pix_total, max_visible_x, max_visible_y, ATTOSECONDS_TO_HZ(refresh)); + //attotime refresh = clocks_to_attotime(horiz_chars_total * vert_pix_total); + LOGMASKED(LOG_IR, "width %u height %u max_x %u max_y %u refresh %f\n", horiz_pix_total, vert_pix_total, max_visible_x, max_visible_y, refresh.as_hz()); rectangle visarea(0, max_visible_x, 0, max_visible_y); - screen().configure(horiz_pix_total, vert_pix_total, visarea, refresh); + screen().configure(horiz_pix_total, vert_pix_total, visarea, refresh.as_attoseconds()); m_scanline_timer->adjust(screen().time_until_pos(0, 0), 0, screen().scan_period()); } |