summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-11-05 16:02:25 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-11-05 16:05:51 -0500
commitf07fab41d6a42e311fed5017cc47f077e98cd913 (patch)
tree6292314e91e3b128daf87afd96fdf485eebc983a /src/emu/video.cpp
parent20e9bfd19f28c7349606441dfcff1db49e31b8ca (diff)
Replace ATTOSECONDS_TO_HZ with as_hz where appropriate (nw)
Diffstat (limited to 'src/emu/video.cpp')
-rw-r--r--src/emu/video.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/video.cpp b/src/emu/video.cpp
index 434e51be969..12fa4d05991 100644
--- a/src/emu/video.cpp
+++ b/src/emu/video.cpp
@@ -457,7 +457,7 @@ void video_manager::begin_recording_mng(const char *name, uint32_t index, screen
if (filerr == osd_file::error::NONE)
{
// start the capture
- int rate = ATTOSECONDS_TO_HZ(screen->frame_period().attoseconds());
+ int rate = int(screen->frame_period().as_hz());
png_error pngerr = mng_capture_start(*info.m_mng_file, m_snap_bitmap, rate);
if (pngerr != PNGERR_NONE)
{
@@ -493,7 +493,7 @@ void video_manager::begin_recording_avi(const char *name, uint32_t index, screen
// build up information about this new movie
avi_file::movie_info info;
info.video_format = 0;
- info.video_timescale = 1000 * ATTOSECONDS_TO_HZ(screen->frame_period().attoseconds());
+ info.video_timescale = 1000 * screen->frame_period().as_hz();
info.video_sampletime = 1000;
info.video_numsamples = 0;
info.video_width = m_snap_bitmap.width();