[Scummvm-git-logs] scummvm master -> aa46d0418c14ad692ce1d1c650766eab01ea5bd6
mduggan
noreply at scummvm.org
Sat Mar 25 00:31:43 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
aa46d0418c TETRAEDGE: Fix missing symbol on non-macos platforms
Commit: aa46d0418c14ad692ce1d1c650766eab01ea5bd6
https://github.com/scummvm/scummvm/commit/aa46d0418c14ad692ce1d1c650766eab01ea5bd6
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-03-25T09:31:36+09:00
Commit Message:
TETRAEDGE: Fix missing symbol on non-macos platforms
Changed paths:
engines/tetraedge/game/options_menu.cpp
diff --git a/engines/tetraedge/game/options_menu.cpp b/engines/tetraedge/game/options_menu.cpp
index 63bd5492654..890e082222a 100644
--- a/engines/tetraedge/game/options_menu.cpp
+++ b/engines/tetraedge/game/options_menu.cpp
@@ -27,6 +27,8 @@
namespace Tetraedge {
+static const float EPSILON = 1.192093e-07f;
+
static Common::String pageStr(int i) {
return Common::String::format("page%d", i);
}
@@ -307,8 +309,8 @@ void OptionsMenu::updateJauge(const Common::String &chan, const Common::String &
if (!sprite)
break;
bool enableSprite = false;
- if (i * (1.0f / n) - FLT_EPSILON <= chanVol) {
- enableSprite = chanVol < (i + 1) * (1.0f / n) - FLT_EPSILON;
+ if (i * (1.0f / n) - EPSILON <= chanVol) {
+ enableSprite = chanVol < (i + 1) * (1.0f / n) - EPSILON;
}
sprite->setVisible(enableSprite);
More information about the Scummvm-git-logs
mailing list