From 948817bb0a3113da2ebc1d9af614114b92bb329a Mon Sep 17 00:00:00 2001 From: ThingsWillCalmUp Date: Tue, 17 Dec 2024 10:34:17 -0700 Subject: [PATCH] gui_replay_controls.lua: Calculate window vertical position based on window height, not window width --- LuaUI/Widgets/gui_replay_controls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaUI/Widgets/gui_replay_controls.lua b/LuaUI/Widgets/gui_replay_controls.lua index 44507223eb..ca8ce7f358 100644 --- a/LuaUI/Widgets/gui_replay_controls.lua +++ b/LuaUI/Widgets/gui_replay_controls.lua @@ -116,8 +116,8 @@ end function CreateTheUI() --create main Chili elements - local screenWidth, _ = Spring.GetViewGeometry() - local windowY = math.floor(screenWidth*2/11 + 32) + local screenWidth, screenHeight = Spring.GetViewGeometry() + local windowY = math.floor(screenHeight/8) local currSpeed = 2 --default button setting if window then