From a093ad04b4750fbb2be5b893ec67e637af41f3fa Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 3 Aug 2013 17:14:56 -0500 Subject: 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. --- src/sdl/sdl_glimp.c | 2 +- src/sdl/sdl_input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sdl') 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" ); } } -- cgit