fixed fullscreen crash on windows