commit | 5d3e488568445b830f11aed39bf9542a8be501bf | [log] [tgz] |
---|---|---|
author | Alexander Winkowski <dereference23@outlook.com> | Sat Jun 25 18:56:33 2022 +0000 |
committer | bigbiff <bigbiff@teamw.in> | Thu Aug 17 23:25:57 2023 +0000 |
tree | 85353930b46cf6ad5c2159ee2618b0ba6956dafb | |
parent | f20981897f36ff6fccc5586dc03adb86ea78b540 [diff] [blame] |
gui: Make framerate configurable Default framerate is 30 FPS Change-Id: Ia05357663905a3babecb95b1e3531ae45fc854c5
diff --git a/gui/animation.cpp b/gui/animation.cpp index ed32da4..e8bbd2d 100644 --- a/gui/animation.cpp +++ b/gui/animation.cpp
@@ -126,7 +126,7 @@ if (mLoop == -2) return 0; // Determine if we need the next frame yet... - if (++mUpdateCount > 30 / mFPS) + if (++mUpdateCount > TW_FRAMERATE / mFPS) { mUpdateCount = 0; if (++mFrame >= mAnimation->GetResourceCount())