sdl2: fix mode changing