TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/
Other
6.95k stars 557 forks source link

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

Closed InfoTeddy closed 8 months ago

InfoTeddy commented 8 months ago

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...