Skip to content

set window coord as UNDEFINED only if x||y==-1#185

Open
korrectional wants to merge 6 commits into
encounter:mainfrom
korrectional:window-coordinate-clamping
Open

set window coord as UNDEFINED only if x||y==-1#185
korrectional wants to merge 6 commits into
encounter:mainfrom
korrectional:window-coordinate-clamping

Conversation

@korrectional
Copy link
Copy Markdown

Stopped window coordinates from being set as SDL_WINDOWPOS_UNDEFINED and instead only do so when x or y are equal to -1. This is done because of another PR (will put link below) in the dusklight project to remember window positions upon close. When a window is to the left of the main monitor, the x coordinate becomes negative and hence the need to allow for negative coordinates in Aurora.

@korrectional
Copy link
Copy Markdown
Author

TwilitRealm/dusklight#1238 this is the PR in dustlight which depends on this PR.

Comment thread lib/window.cpp Outdated
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.

2 participants