fixed the fullscreen mode for winapi