diff options
Diffstat (limited to 'mm')
| -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; |
