diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-10-12 21:08:17 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-10-13 00:04:00 +0400 |
commit | 3394fdfe4bc2a1d73c5f84e85ac85c26e21d3468 (patch) | |
tree | 9d72f4d504c66dabe82fef1aff55802486927a61 /src | |
parent | 6a2c02cd2d147f3550b6ed7a479b6599a5de01f0 (diff) |
Go To dialog: Slightly improve the precision of the frame number.
The frame number was sometimes off by 1.
This commit fixes #1478.
Diffstat (limited to 'src')
-rw-r--r-- | src/mpc-hc/GoToDlg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpc-hc/GoToDlg.cpp b/src/mpc-hc/GoToDlg.cpp index 24be8def9..1f033a9ab 100644 --- a/src/mpc-hc/GoToDlg.cpp +++ b/src/mpc-hc/GoToDlg.cpp @@ -89,7 +89,7 @@ BOOL CGoToDlg::OnInitDialog() }
if (m_fps > 0) {
- m_framestr.Format(_T("%d, %.3f"), (int)(m_fps * m_time / 10000000), m_fps);
+ m_framestr.Format(_T("%d, %.3f"), (int)(m_fps * m_time / 10000000 + 0.5), m_fps);
}
UpdateData(FALSE);
|