Fix a bug where changing resolution wouldn't make a difference on a fly
Merge pull request #5225 from DanyalZia/patch-50

Fix a bug where changing resolution wouldn't make a difference on the fly