Fix resolution changing for Windows
Fix improper logic when comparing resolutions