diff options
| author | Eblo <7004497+Eblo@users.noreply.github.com> | 2026-07-24 13:07:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-24 13:07:26 -0400 |
| commit | b8f855a975f2cc3be7a62a572f68c04a4a41ea54 (patch) | |
| tree | 400b3037b3e6e35b2aa203ad7a59310356bbcd59 | |
| parent | f3906376dd47a6f7797674d3b76b0775d3353c88 (diff) | |
Fix issue with A button and hour hand disappearing (#1807)develop-keiichi
* Fix issue with A button and hour hand disappearing
* Simplify calculation
* Cast gameWidth to signed
| -rw-r--r-- | mm/2s2h/BenPort.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/2s2h/BenPort.cpp b/mm/2s2h/BenPort.cpp index c9a5ad156..294c610d8 100644 --- a/mm/2s2h/BenPort.cpp +++ b/mm/2s2h/BenPort.cpp @@ -1867,7 +1867,7 @@ extern "C" int32_t OTRConvertHUDXToScreenX(int32_t v) { float hudScreenRatio = (hudWidth / 320.0f); float hudCoord = v * hudScreenRatio; - float gameOffset = (gameWidth - hudWidth) / 2; + float gameOffset = (int32_t(gameWidth) - hudWidth) / 2; float gameCoord = hudCoord + gameOffset; float gameScreenRatio = (320.0f / gameWidth); float screenScaledCoord = gameCoord * gameScreenRatio; |
