Fixes when resolution is changed within the game. It seems to work
correctly now...