From 5fd755a895c73a3dec5e2124c12460a41d5d4d0e Mon Sep 17 00:00:00 2001 From: Porkchop Date: Fri, 3 May 2019 23:04:15 -0600 Subject: [PATCH] Set top left corner of fullscreen and manual fullscreen Fixes game loading in non-fullscreen mode on windows 7 when using a windowed lobby with a non-zero offset --- LuaMenu/widgets/gui_settings_window.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LuaMenu/widgets/gui_settings_window.lua b/LuaMenu/widgets/gui_settings_window.lua index 3dbe82775..677f5f61d 100644 --- a/LuaMenu/widgets/gui_settings_window.lua +++ b/LuaMenu/widgets/gui_settings_window.lua @@ -1773,6 +1773,8 @@ function widget:Initialize() elseif battleStartDisplay == 3 then -- Fullscreen Configuration:SetSpringsettingsValue("XResolution", screenX) Configuration:SetSpringsettingsValue("YResolution", screenY) + Configuration:SetSpringsettingsValue("WindowPosX", 0) + Configuration:SetSpringsettingsValue("WindowPosY", 0) Configuration:SetSpringsettingsValue("Fullscreen", 1) elseif battleStartDisplay == 4 then -- Manual Borderless local borders = WG.Chobby.Configuration.manualBorderless.game or {} @@ -1785,6 +1787,8 @@ function widget:Initialize() local resolution = WG.Chobby.Configuration.manualFullscreen.game or {} Configuration:SetSpringsettingsValue("XResolution", resolution.width or screenX) Configuration:SetSpringsettingsValue("YResolution", resolution.height or screenY) + Configuration:SetSpringsettingsValue("WindowPosX", 0) + Configuration:SetSpringsettingsValue("WindowPosY", 0) Configuration:SetSpringsettingsValue("Fullscreen", 1) end