From ae37642f30a1ad132fe026928e7056f576539c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Fri, 19 Aug 2011 17:21:33 +0000 Subject: [PATCH] rm unneeded check preventing it from being read during device start, fixes MT bug 4396. m_frame_period default/init value is already DEFAULT_FRAME_PERIOD (through constructor) if the device isn't started yet --- src/emu/screen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/screen.h b/src/emu/screen.h index 027d4fd3e28..18a202d4269 100644 --- a/src/emu/screen.h +++ b/src/emu/screen.h @@ -139,7 +139,7 @@ public: attotime time_until_vblank_end() const; attotime time_until_update() const { return (machine().config().m_video_attributes & VIDEO_UPDATE_AFTER_VBLANK) ? time_until_vblank_end() : time_until_vblank_start(); } attotime scan_period() const { return attotime(0, m_scantime); } - attotime frame_period() const { return (this == NULL || !started()) ? DEFAULT_FRAME_PERIOD : attotime(0, m_frame_period); }; + attotime frame_period() const { return (this == NULL) ? DEFAULT_FRAME_PERIOD : attotime(0, m_frame_period); }; UINT64 frame_number() const { return m_frame_number; } int partial_updates() const { return m_partial_updates_this_frame; }