Fix switching resolution in-game with SDL2