summaryrefslogtreecommitdiff
path: root/src/sdl/sdl_glimp.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-08-03 17:14:56 -0500
committerTim Angus <tim@ngus.net>2014-06-17 17:43:33 +0100
commita093ad04b4750fbb2be5b893ec67e637af41f3fa (patch)
tree7333a50c81a84a61b7615ad729414b46bf0d405d /src/sdl/sdl_glimp.c
parent671cbc03f1178575888bd043010fb56caa3d3a95 (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.
Diffstat (limited to 'src/sdl/sdl_glimp.c')
-rw-r--r--src/sdl/sdl_glimp.c2
1 files changed, 1 insertions, 1 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( );
}