fixed fullscreen-to-windowed format bug