fixed window resizing on SDL2