Fix crash when switching to widescreen in SDL2