Updated comment about resize SD logging out

This commit is contained in:
ipkpjersi 2024-06-17 22:55:46 -04:00
parent 17298c61a2
commit 853b60e871

View file

@ -60,7 +60,7 @@ class plugin : Plugin() {
override fun OnLogout() { override fun OnLogout() {
if (DisplayMode.resizableSD) { 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.resizableSD = false
DisplayMode.setWindowMode(true, 2, GameShell.frameWidth, GameShell.frameHeight) DisplayMode.setWindowMode(true, 2, GameShell.frameWidth, GameShell.frameHeight)
} }