screen.cpp: only log at start the message about deprecated vblank

to avoid spamming logerror debugger window at each frame, which
makes debugging quite hard ;) . nw.
This commit is contained in:
etabeta78 2016-05-01 18:01:43 +02:00
parent 369cda8c16
commit 37c7b9eb31

View File

@ -912,6 +912,8 @@ void screen_device::device_start()
save_item(NAME(m_vblank_start_time)); save_item(NAME(m_vblank_start_time));
save_item(NAME(m_vblank_end_time)); save_item(NAME(m_vblank_end_time));
save_item(NAME(m_frame_number)); save_item(NAME(m_frame_number));
if (m_oldstyle_vblank_supplied)
logerror("%s: Deprecated legacy Old Style screen configured (MCFG_SCREEN_VBLANK_TIME), please use MCFG_SCREEN_RAW_PARAMS instead.\n",this->tag());
} }
@ -1024,10 +1026,7 @@ void screen_device::configure(int width, int height, const rectangle &visarea, a
// if an old style VBLANK_TIME was specified in the MACHINE_CONFIG, // if an old style VBLANK_TIME was specified in the MACHINE_CONFIG,
// use it; otherwise calculate the VBLANK period from the visible area // use it; otherwise calculate the VBLANK period from the visible area
if (m_oldstyle_vblank_supplied) if (m_oldstyle_vblank_supplied)
{
m_vblank_period = m_vblank; m_vblank_period = m_vblank;
logerror("%s: Deprecated legacy Old Style screen configured (MCFG_SCREEN_VBLANK_TIME), please use MCFG_SCREEN_RAW_PARAMS instead.\n",this->tag());
}
else else
m_vblank_period = m_scantime * (height - visarea.height()); m_vblank_period = m_scantime * (height - visarea.height());