diff options
author | Simon Howard | 2006-09-19 21:26:52 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-19 21:26:52 +0000 |
commit | 11af5396a479d804045ce3286c9c34eddf1fd7b7 (patch) | |
tree | a98efacc75f825ac282dfe45019d61397cddd0de | |
parent | c3208e4f1648b7d4c3c19f88cebb935a0021252e (diff) | |
download | chocolate-doom-11af5396a479d804045ce3286c9c34eddf1fd7b7.tar.gz chocolate-doom-11af5396a479d804045ce3286c9c34eddf1fd7b7.tar.bz2 chocolate-doom-11af5396a479d804045ce3286c9c34eddf1fd7b7.zip |
Move the grab mouse setting to the mouse config dialog.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 622
-rw-r--r-- | setup/display.c | 4 | ||||
-rw-r--r-- | setup/mouse.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/setup/display.c b/setup/display.c index f30debd8..41669271 100644 --- a/setup/display.c +++ b/setup/display.c @@ -47,7 +47,6 @@ static vidmode_t modes[] = static int vidmode = 0; static int fullscreen = 0; static int screenmult = 1; -static int grabmouse = 1; // Given the video settings (fullscreen, screenmult, etc), find the // current video mode @@ -117,8 +116,5 @@ void ConfigDisplay(void) } TXT_AddWidget(window, table); - - TXT_AddWidget(window, TXT_NewSeparator(NULL)); - TXT_AddWidget(window, TXT_NewCheckBox("Grab mouse", &grabmouse)); } diff --git a/setup/mouse.c b/setup/mouse.c index 63c1ef4d..f214004c 100644 --- a/setup/mouse.c +++ b/setup/mouse.c @@ -28,6 +28,7 @@ int novert; int speed; int accel; int threshold; +int grabmouse = 1; int mouseb_fire = 0; int mouseb_forward = 1; @@ -97,12 +98,15 @@ void ConfigMouse(void) AddMouseControl(table, "Strafe on", &mouseb_strafe); TXT_AddWidget(window, table); - - TXT_AddWidget(window, TXT_NewSeparator(NULL)); + + TXT_AddWidget(window, TXT_NewSeparator("Misc.")); TXT_AddWidget(window, TXT_NewInvertedCheckBox("Allow vertical mouse movement", &novert)); + TXT_AddWidget(window, TXT_NewCheckBox("Grab mouse in windowed mode", + &grabmouse)); + } |