From 07fe1862c7de11de47ebb84ccbed0eb0f08d10fb Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 23 Oct 2010 10:19:02 +0000 Subject: [PATCH] s/grap/grab/g --- README | 2 +- src/sdl/input.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README b/README index 2649745d..433d91cc 100644 --- a/README +++ b/README @@ -262,7 +262,7 @@ How do I record a demo? When playing in window mode my is locked onto the window. Can I change that, e.g. that Quake II is behaving like a normal window? - Open the console with pressing ~ or ^. If you want Quake II to never - grab the mouse set "in_grap" to 0, if Quake II should never release + grab the mouse set "in_grab" to 0, if Quake II should never release the mouse set 1, for releasing the mouse when open the console set to 2. The default is 2. diff --git a/src/sdl/input.c b/src/sdl/input.c index 6ac8a197..0dfc73da 100644 --- a/src/sdl/input.c +++ b/src/sdl/input.c @@ -35,7 +35,7 @@ static int old_windowed_mouse; static cvar_t *windowed_mouse; -static cvar_t *in_grap; +static cvar_t *in_grab; static int mouse_x, mouse_y; static int old_mouse_x, old_mouse_y; static int mouse_buttonstate; @@ -321,7 +321,7 @@ void IN_Update(void) /* Grab and ungrab the mouse if the console is opened */ - if (in_grap->value == 2) + if (in_grab->value == 2) { if (old_windowed_mouse != windowed_mouse->value) { @@ -337,7 +337,7 @@ void IN_Update(void) } } } - else if (in_grap->value == 1) + else if (in_grab->value == 1) { SDL_WM_GrabInput(SDL_GRAB_ON); } @@ -454,7 +454,7 @@ IN_BackendInit ( in_state_t *in_state_p ) SDL_EnableKeyRepeat( SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL ); windowed_mouse = ri.Cvar_Get ("windowed_mouse", "1", CVAR_ARCHIVE); - in_grap = ri.Cvar_Get ("in_grap", "2", CVAR_ARCHIVE); + in_grab = ri.Cvar_Get ("in_grab", "2", CVAR_ARCHIVE); Com_Printf( "Input initialized.\n" ); }