Skip to content

Commit 96f0611

Browse files
committed
Mac: don't vid_restart when toggling full-screen
The keyboard shortcut (Command+F) for toggling fullscreen mode unnecessarily issued vid_restart. It works fine without that as can be seen by just setting the cvar r_fullscreen.
1 parent ed598c3 commit 96f0611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/client/cl_keys.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static bool DetectBuiltInShortcut( Keyboard::Key key )
511511
if ( key == Key::FromCharacter('f') )
512512
{
513513
Key_ClearStates();
514-
Cmd::BufferCommandText("toggle r_fullscreen; vid_restart");
514+
r_fullscreen.Set( !r_fullscreen.Get() );
515515
return true;
516516
}
517517
else if ( key == Key::FromCharacter('q') )

0 commit comments

Comments
 (0)