diff options
Diffstat (limited to 'src/devices/video/fixfreq.cpp')
-rw-r--r-- | src/devices/video/fixfreq.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/video/fixfreq.cpp b/src/devices/video/fixfreq.cpp index 615fe4ce0cf..c5dc2e5ffcb 100644 --- a/src/devices/video/fixfreq.cpp +++ b/src/devices/video/fixfreq.cpp @@ -19,6 +19,8 @@ //#define VERBOSE 1 #include "logmacro.h" +#include <algorithm> + /*************************************************************************** Fixed frequency monitor @@ -46,7 +48,7 @@ void fixedfreq_monitor_state::update_sync_channel(const time_type &time, const d { //LOG("VSYNC %d %d\n", m_last_x, m_last_y + m_sig_field); m_last_y = m_desc.m_vbackporch - m_desc.m_vsync; - m_intf.vsync_start_cb(time - m_last_vsync_time); + m_intf.vsync_start_cb(std::max(time - m_last_vsync_time, m_min_frame_period)); m_last_vsync_time = time; } else if (last_vsync && !m_sig_vsync) |