Fixed fullscreen and windowed mode