Fix text getting appended to vid_restart in command buffer

I was getting unknown command "vid_restart-button2" warning on OSX when trying to use alt-return to toggle fullscreen.
This commit is contained in:
Zack Middleton 2013-08-03 17:14:56 -05:00
parent 2eaee597c9
commit 81909bb266
2 changed files with 2 additions and 2 deletions

View file

@ -808,7 +808,7 @@ void GLimp_EndFrame( void )
{ {
// SDL_WM_ToggleFullScreen didn't work, so do it the slow way // SDL_WM_ToggleFullScreen didn't work, so do it the slow way
if( !sdlToggled ) if( !sdlToggled )
ri.Cmd_ExecuteText(EXEC_APPEND, "vid_restart"); ri.Cmd_ExecuteText(EXEC_APPEND, "vid_restart\n");
ri.IN_Restart( ); ri.IN_Restart( );
} }

View file

@ -999,7 +999,7 @@ void IN_Frame( void )
if ( (vidRestartTime != 0) && (vidRestartTime < Sys_Milliseconds()) ) if ( (vidRestartTime != 0) && (vidRestartTime < Sys_Milliseconds()) )
{ {
vidRestartTime = 0; vidRestartTime = 0;
Cbuf_AddText( "vid_restart" ); Cbuf_AddText( "vid_restart\n" );
} }
} }