diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-08-03 17:14:56 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:33 +0100 |
commit | a093ad04b4750fbb2be5b893ec67e637af41f3fa (patch) | |
tree | 7333a50c81a84a61b7615ad729414b46bf0d405d | |
parent | 671cbc03f1178575888bd043010fb56caa3d3a95 (diff) |
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.
-rw-r--r-- | src/sdl/sdl_glimp.c | 2 | ||||
-rw-r--r-- | src/sdl/sdl_input.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c index 4d8982bf..aeb567c5 100644 --- a/src/sdl/sdl_glimp.c +++ b/src/sdl/sdl_glimp.c @@ -804,7 +804,7 @@ void GLimp_EndFrame( void ) { // SDL_WM_ToggleFullScreen didn't work, so do it the slow way if( !sdlToggled ) - ri.Cmd_ExecuteText(EXEC_APPEND, "vid_restart"); + ri.Cmd_ExecuteText(EXEC_APPEND, "vid_restart\n"); ri.IN_Restart( ); } diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index 070ba600..e47034fd 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -1061,7 +1061,7 @@ void IN_Frame( void ) if( ( vidRestartTime != 0 ) && ( vidRestartTime < Sys_Milliseconds( ) ) ) { vidRestartTime = 0; - Cbuf_AddText( "vid_restart" ); + Cbuf_AddText( "vid_restart\n" ); } } |