From 853b60e8711a2ff7e30b339d8cf952ee52fb86b7 Mon Sep 17 00:00:00 2001 From: ipkpjersi Date: Mon, 17 Jun 2024 22:55:46 -0400 Subject: [PATCH] Updated comment about resize SD logging out --- plugin-playground/src/main/kotlin/ToggleResizableSD/plugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-playground/src/main/kotlin/ToggleResizableSD/plugin.kt b/plugin-playground/src/main/kotlin/ToggleResizableSD/plugin.kt index aeb0e56..ecf53e7 100644 --- a/plugin-playground/src/main/kotlin/ToggleResizableSD/plugin.kt +++ b/plugin-playground/src/main/kotlin/ToggleResizableSD/plugin.kt @@ -60,7 +60,7 @@ class plugin : Plugin() { override fun OnLogout() { if (DisplayMode.resizableSD) { - //Because resizable SD always uses the "HD" size canvas/window mode (check the in-game Graphics Options with resizeable SD enabled if you don't believe me!), useHD becomes true when logging out, so logging out with resizeSD enabled means "HD" will always be enabled on the login screen after logging out, so we might as well fix the HD flyover by setting resizableSD to false first, and calling setWindowMode to replace the canvas and set newMode to 2. + //Because resizable SD always uses the "HD" size canvas/window mode (check the in-game Graphics Options with resizeable SD enabled if you don't believe me!), useHD becomes true when logging out, so logging out with resizeSD enabled means "HD" will always be enabled on the login screen after logging out, so we might as well fix the HD flyover by setting resizableSD to false first, and then calling setWindowMode to replace the canvas and set newMode to 2. DisplayMode.resizableSD = false DisplayMode.setWindowMode(true, 2, GameShell.frameWidth, GameShell.frameHeight) }