Bill Currie
a823912075
Apply most of Bruce Momjian's BSD/OS 4.2 patches. I didn't include his sound
...
stoping code because I don't like the way it was done, I'll work on
implementing a better version next.
* Use of poll() is not standard. I replaced it with usleep(),
which I think is more portable. I know linux supports usleep() and all
BSD's. Another option would be to use select(), which is much more
widely supported than poll().
* Modified in_x11.c to stop sound and turn on keyboard repeat
when the Quake window loses focus. It turns them back on/off when the
window gains focus. I often play quake and leave the window to do
something else, and the lack of repeat and quake sounds were annoying.
* Fix the -nomouse option so it still allows keyboard actions.
The current code skips keyboard setup when -nomouse is used.
* Fix so config.cfg option "confirm_quit" works under X11.
2001-07-05 19:07:02 +00:00
Adam Olsen
5369e82456
ditto as from other commit.
2001-05-22 05:25:20 +00:00
Jeff Teunissen
8a4cc8a526
Restore gamma properly in X11 targets, regardless of the value of
...
vid_system_gamma
2001-05-13 09:07:57 +00:00
Jeff Teunissen
272abade38
Backport Cvar callbacks to newtree. Software gamma still doesn't work in
...
GL, and I still don't know exactly why.
2001-05-13 05:10:02 +00:00
Bill Currie
bd06625c55
backport the gamma code from the quakeforge tree in preparation for 0.3.1
...
Doesn't work yet because VID_UpdateGamma needs to be called at the
appropriate time and cvar callbacks are not implemented in newtree.
2001-04-23 03:52:20 +00:00
Zephaniah E. Hull
192eba3898
Compiles now, works too.
2001-02-14 02:49:37 +00:00
Jeff Teunissen
96722e9137
Yeah yeah, I messed it up again.
2001-02-14 02:39:43 +00:00
Jeff Teunissen
cedd063a6a
Okay, so I fscked up the video mode restoration. Sue me. It's fixed now.
2001-02-14 02:36:27 +00:00
Jeff Teunissen
443944c48b
context_x11.c: whitespace.
...
dga_check.c: Make sure that the version of the VidMode extension at
runtime is the same version we compiled with, to deal with a structure
change that occurred between VidMode extension versions 1 and 2. If a
version 3 is developed, this will have to be fixed again.
2001-02-11 16:05:52 +00:00
Bill Currie
911d38e5e5
fix the failure mode for vid_fullscreen 1
2001-02-10 05:08:25 +00:00
Jeff Teunissen
48e901481a
Even more VidMode paranoia: We now save the mode we started with and
...
explicitly go back to that mode instead of the first in the list.
2001-02-09 22:36:30 +00:00
Jeff Teunissen
5fe2ff158d
Update XFree86 VidMode extension handling. We no longer try to go
...
fullscreen if the video mode we want isn't known to X.
2001-02-09 21:50:42 +00:00
Ragnvald Maartmann-Moe IV
800ee05584
More whitespace than you can shake a shambler at.
2001-02-07 05:45:59 +00:00
Bill Currie
17e9aa044b
fix the shifting window problem in fullscreen (thanks, zinx)
2001-02-02 05:42:35 +00:00
Bill Currie
ccba39666b
#include audit
2000-12-30 02:16:36 +00:00
Jeff Teunissen
300910698c
more void cleanup
2000-12-28 09:32:02 +00:00
Jeff Teunissen
54e2a4d9d3
Okay, the big whitespace reformat. There is some silliness (case
...
statements, variable declarations), but all in all it's not bad.
2000-12-08 06:51:37 +00:00
Jeff Teunissen
47c70b3257
whitespace
2000-11-21 09:17:29 +00:00
Zephaniah E. Hull
8f1ff1bddc
A few compile fixes.
...
And of course the very slight rework of the input system, at least
in_x11 gets shifts right for different keymaps.
Oh, by the way, ALL other input targets are broken in a very 'will not
compile' way.
2000-11-17 21:23:26 +00:00
Jeff Teunissen
ea2b747c73
Fix window manager hint.
2000-11-09 00:56:43 +00:00
Bill Currie
54963bfcb4
vid_fullscreen is meant to be CVAR_ROM, not CVAR_ARCHIVE
...
* taniwha programs his black logo logitech wheel mouse with secret instructions
2000-10-31 04:16:20 +00:00
Zephaniah E. Hull
13bd5ce012
The init sequence cleanup!
...
Also broke up client.h into a lot of smaller headers.
Oh, software rendering works again.
And yes, this does hit a hell of a lot of files.
2000-10-29 15:35:24 +00:00
Ragnvald Maartmann-Moe IV
2f094cb344
Minor cleanup to window closing on exit.
2000-10-29 07:58:43 +00:00
Bill Currie
a3dbf0f9da
fix the screen offset caused by moving the mouse at just the wrong moment
2000-10-28 05:08:11 +00:00
Zephaniah E. Hull
cff853a374
Cleanup of x11_set_vidmode, with a chainsaw.
...
Other minor cleanups too.
2000-10-24 18:10:01 +00:00
Bill Currie
1abb6fe74c
fix the misaligned fullscreen window once and for all (fingers crossed:)
2000-10-22 07:14:47 +00:00
Bill Currie
d295f183ba
remove va from commdef.h and fix the consequences
2000-10-21 07:34:56 +00:00
Bill Currie
2682888425
the big cvar value -> int_val audit. seems to work ok
2000-10-17 03:17:42 +00:00
Bill Currie
cf8afd73a3
vid_fullscreen cvar cleanup
2000-10-16 04:49:12 +00:00
Jeff Teunissen
4173134bae
Create a window class ICCCM hint, so the window manager knows what the
...
name of the program is. It's "`basename $0`.PROGRAM".
Also, create a window size ICCCM hint, forcing the window to the size it
should be -- we don't want it resized, so now the window manager ought to
get the picture. :)
2000-10-11 09:54:27 +00:00
Bill Currie
3c4b203eee
bloody bsd headers with bloody #warning
...
!lart bsd :)
2000-10-10 22:00:35 +00:00
Bill Currie
065abe9464
make VID_SetCaption consistent wherever appropriate (ie possibly windowed
...
environments). caption is "PROGRAM VERSION[: text]".
2000-10-04 05:45:48 +00:00
Jeff Teunissen
85e0b2b6aa
X11 targets have runtime caption setting now.
2000-10-03 07:10:48 +00:00
Zephaniah E. Hull
01a5c65e52
More cleanup, now working on the rendering line as a whole.
...
Con_SafePrintf is no longer needed, as Con_Printf is safe.
2000-09-29 19:29:22 +00:00
Bill Currie
9ece49b4e8
fix for Bug #105221 though it seems repeats were ignored anyway. this was done
...
by backporting the glx/x11 changes from nuq
2000-09-24 03:43:06 +00:00
Zephaniah E. Hull
8e64d0d3cc
Fixed the signal handling for x11 targets, specificly -x11..
...
(Yes, this required a change in the glx target, don't ask)
2000-06-26 17:20:38 +00:00
Bill Currie
3951d1fe4c
bring across the VID and IN modules for svga, x11 and glx from OT.
2000-05-23 06:36:33 +00:00