diff --git a/CHANGELOG.md b/CHANGELOG.md index 72f508f..4b63928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] - Added `l10n_uk.xml` by Gonimy-Vetrom +- Fixed temperature misalignment for widesceen resolutions for [#3](https://github.com/Peppie84/FS25_ExtendedGameInfoDisplay/issues/3) ## [v1.0.0.0] - 2025-01-09 - Ported from LS22 to LS25 diff --git a/FS25_ExtendedGameInfoDisplay/src/extendedgameinfodisplay.lua b/FS25_ExtendedGameInfoDisplay/src/extendedgameinfodisplay.lua index 9c71f89..8b7ec97 100644 --- a/FS25_ExtendedGameInfoDisplay/src/extendedgameinfodisplay.lua +++ b/FS25_ExtendedGameInfoDisplay/src/extendedgameinfodisplay.lua @@ -76,7 +76,7 @@ function ExtendedGameInfoDisplay:gameinfodisplay__draw(overwrittenFunc) end function ExtendedGameInfoDisplay:setTemperaturePosition(gameInfoDisplay) - local referencePositionX = gameInfoDisplay.calendarIcon.x - gameInfoDisplay:scalePixelToScreenHeight(65) + local referencePositionX = gameInfoDisplay.calendarIcon.x - gameInfoDisplay:scalePixelToScreenWidth(120) gameInfoDisplay.temperature.x = referencePositionX gameInfoDisplay.temperatureUp.x = referencePositionX gameInfoDisplay.temperatureDown.x = referencePositionX