mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
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:
parent
369cda8c16
commit
37c7b9eb31
@ -912,6 +912,8 @@ void screen_device::device_start()
|
||||
save_item(NAME(m_vblank_start_time));
|
||||
save_item(NAME(m_vblank_end_time));
|
||||
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,
|
||||
// use it; otherwise calculate the VBLANK period from the visible area
|
||||
if (m_oldstyle_vblank_supplied)
|
||||
{
|
||||
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
|
||||
m_vblank_period = m_scantime * (height - visarea.height());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user