Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems to be impossible to write reasonable code to switch between window modes #1500

Open
GoogleFrog opened this issue May 7, 2024 · 4 comments

Comments

@GoogleFrog
Copy link
Collaborator

GoogleFrog commented May 7, 2024

Here is a demonstration: https://github.com/ZeroK-RTS/WindowFrustration

Run it in a bare spring directory with whatever map you like.

Press ZXC to switch between "borderless", "windowed", and "fullscreen".

Press (XZ)^nX and you'll find that the "windowed" mode has no border.

Sometimes going C -> X results in no border too, sometimes it does not. Whether it does or not seems to depend on whether spring spends a second blanking the screen and flickering between modes.

@lhog
Copy link
Collaborator

lhog commented May 7, 2024

I don't have my regular dev setup with me these days (and won't have for 1-2 months), but thanks for putting this together. If your code is not bugged and it indeed misbehaves I will sort it out.

@lhog
Copy link
Collaborator

lhog commented May 7, 2024

Also can this be explained to me in human readable terms: (ZX)^nX

@sprunk
Copy link
Collaborator

sprunk commented May 7, 2024

Also can this be explained to me in human readable terms: (XZ)^nX

Press one of the following combinations:

  • X Z X
  • X Z X Z X
  • X Z X Z X Z X
  • X Z X Z X Z X Z X
  • etc

@GoogleFrog
Copy link
Collaborator Author

Oops, I will edit the X into the right order.

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

No branches or pull requests

3 participants