Skip to content

fix weird fullscreen window border bug - #667

Open
Goldofleaves wants to merge 4 commits into
KristalTeam:mainfrom
Goldofleaves:fullscreen
Open

fix weird fullscreen window border bug#667
Goldofleaves wants to merge 4 commits into
KristalTeam:mainfrom
Goldofleaves:fullscreen

Conversation

@Goldofleaves

Copy link
Copy Markdown
Contributor

Fixes the weird bug with borders as shown in:imageaherrhehaeht5

This happens when you call love.window.setFullScreen(false) when you bootup on fullscreen mode, which is because love.windows.setFullScreen(false) falls back to the original window size before it was initially fullscreened. In the case of bootup, it is exactly the values used in love.conf since the initial Kristal.resetWindow call in love.load handles both fullscreening and editing the window size (which doesnt do anything in this case, since it is also fullscreening).

This pr removes the Kristal.resetWindow call in love.load and edits it to resize the window first (for love.window.setFullScreen to have a correct fallback value), then fullscreen the window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant