Winsetting is-fullscreen to true will cause the window to bleed onto the adjacent screen, not cover the taskbar and go slightly outside of the main screen if the window is maximized before the winset.
Numbered Steps to Reproduce Problem:
1) Maximize the game window
2) winset it to is-fullscreen=true
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
// causes bleeding onto another screen and doesn't fullscreen
// here we are forcing window to be maximized before enabling fullscreen
tfs_b()
set name = "toggle fullscreen is-maximized=true"
var/fullscreen = winget(usr, "mainwindow", "is-fullscreen") == "true"
fullscreen = !fullscreen
if(fullscreen)
winset(usr, "mainwindow", "is-maximized=true")
winset(usr, "mainwindow", "is-fullscreen=true")
else
winset(usr, "mainwindow", "is-fullscreen=false")
// goes into fullscreen mode without issues
// here we are forcing window to be not maximized before enabling fullscreen
tfs_w()
set name = "toggle fullscreen is-maximized=false"
var/fullscreen = winget(usr, "mainwindow", "is-fullscreen") == "true"
fullscreen = !fullscreen
if(fullscreen)
winset(usr, "mainwindow", "is-maximized=false")
winset(usr, "mainwindow", "is-fullscreen=true")
else
winset(usr, "mainwindow", "is-fullscreen=false")
winset(usr, "mainwindow", "is-maximized=true")
https://cdn.discordapp.com/attachments/725458744711839873/ 1238181343767035976/is-fullscreen.zip?ex=663e59bc&is=663d083 c&hm=5bf20e656cbc6abed4d2a2ebf20b5a067523e79a466fde61ce935ba fd4005b63
Expected Results:
Consistent behavior regardless of is-maximized state.
Actual Results:
Already described in the problem summary.
Does the problem occur:
Every time? Or how often?
Every time.
When does the problem NOT occur?
It always occurs.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Seems to be consistent across older versions.(also tested on 1636)
Workarounds:
Winsetting is-maximized to false before winsetting is-fullscreen=true