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

Fix "resize to nearest" potentially resizing to a resolution larger than the user's desktop resolution #1146

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

InfoTeddy
Copy link
Contributor

This fixes the possibility of the "resize to nearest" graphics option resizing the game window to be bigger than the resolution of the user's desktop monitor.

To fix this, just subtract multiples of 320x240 until the chosen multiple is smaller than the dimensions of the desktop.

Discord user Dzhake discovered this issue.

Legal Stuff:

By submitting this pull request, I confirm that...

  • My changes may be used in a future commercial release of VVVVVV
  • I will be credited in a CONTRIBUTORS file and the "GitHub Friends"
    section of the credits for all of said releases, but will NOT be compensated
    for these changes unless there is a prior written agreement

This fixes the possibility of the "resize to nearest" graphics option
resizing the game window to be bigger than the resolution of the user's
desktop monitor.

To fix this, just subtract multiples of 320x240 until the chosen
multiple is smaller than the dimensions of the desktop.

Discord user Dzhake discovered this issue.
@InfoTeddy InfoTeddy merged commit 365ee96 into TerryCavanagh:master Feb 6, 2024
4 checks passed
@InfoTeddy InfoTeddy deleted the general-bug-fixes branch February 6, 2024 02:03
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