Ragnvald Maartmann-Moe IV
372b763704
Inconsequential changes.
2004-02-09 04:11:13 +00:00
Bill Currie
6b036d14ed
in_mouse_accel patch from qize@gmx.net
2003-09-04 22:29:40 +00:00
Bill Currie
6f88e4e343
break out some duplicated code into a function and get the window coords
...
"properly" (for this mess I'm not sure I'm willing to call code:)
2003-08-04 01:28:30 +00:00
Bill Currie
aa345faf12
use the window size for the fullscreen view
2003-03-17 05:39:10 +00:00
Bill Currie
a8c989969d
hopefully better input grabbing state tracking
2003-03-07 22:30:15 +00:00
Bill Currie
be728c7b7c
Initialize p_mouse_x and p_mouse_y from the EnterNotify event so that the
...
first mouse move of the game doesn't screw up your view. Also does resonable
behaviour when entering and leaving the window.
2003-02-25 17:19:47 +00:00
Ragnvald Maartmann-Moe IV
1201f615ee
Move a test inside function, rather than repeated all over the place.
2003-02-25 06:04:42 +00:00
Ragnvald Maartmann-Moe IV
646f875a34
Add return value checking for in_grab. Also some dead code removal, dangling comment and white space cleanup.
2003-02-13 19:03:48 +00:00
Bill Currie
53d3252792
don't adjust the system gamma unless the window has focus. also quench an
...
internal warning (the event system can't handle shm events (doesn't seem to
need to anyway)).
2003-02-13 18:24:30 +00:00
Ragnvald Maartmann-Moe IV
76eb7917a7
More whitespace.
2003-02-09 10:18:43 +00:00
Bill Currie
c5eb7d6e94
bring back the screen saver code
2003-01-16 21:44:42 +00:00
Bill Currie
761a7546dd
re-arrange things so __attribute__ and __builtin_expect are properly
...
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Bill Currie
71196fedf6
make gcc more anal about prototypes, string constants and function
...
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Bill Currie
71e95ee26f
stop lying about responding to Delete events
2002-11-06 17:09:01 +00:00
Bill Currie
652907bc58
X overlays crash fix from Vincent Cojot
2002-10-11 21:32:17 +00:00
Bill Currie
6b559077dc
Nuke the screen saver code as it hasn't been needed since we stopped using
...
dga keyboard input
2002-08-21 02:10:47 +00:00
Ragnvald Maartmann-Moe IV
1489ee8648
Remove old keyboard/mouse grabber cruft.
2002-08-21 01:55:31 +00:00
Ragnvald Maartmann-Moe IV
168915faed
Some header cleanup, some whitespace.
2002-08-21 00:04:35 +00:00
Bill Currie
5009213564
Move the signal handling code from video/targets/* to sys.c (I'm leaving
...
the SDL target files for Despair since he's working on the currently). Also
make progs segfault handling much more robust (and general: sigill etc too:)
2002-08-20 23:04:57 +00:00
Bill Currie
3551b82a50
compile fix for when vidmode isn't available
2002-06-10 22:30:30 +00:00
Bill Currie
9d59915fdc
it's a little hacky, but this might do better with keeping vid_gamma_avail
...
straight.
2002-05-17 03:17:33 +00:00
Bill Currie
44dcf74627
strip the \n from all(?) of the Sys_Error calls (Sys_Error itself will be
...
adding \n).
2002-05-14 06:12:29 +00:00
Jeff Teunissen
2711cbbe7c
Don't restore gamma if it's never been initialized. :)
2002-04-28 09:03:50 +00:00
Jeff Teunissen
411ade4ce2
Fix gamma again. Also some minor whitespace and slight code cleanup.
2002-04-26 20:25:01 +00:00
Jeff Teunissen
b75d50d088
X11 gamma restoration now works properly for systems with a normal gamma that
...
uses all three components (red, green, blue).
Next up: three-component internal gamma.
2002-04-25 20:53:15 +00:00
Jeff Teunissen
c877ba7fbd
System gamma is now restored properly in X11.
2002-04-25 20:28:15 +00:00
Bill Currie
180c517771
signal handling improvements
2002-03-13 19:20:57 +00:00
Bill Currie
009e6346fe
now, so long as ulimit allows it, we can always get a core dump. Looks a
...
little odd:
Received signal 11, exiting...
IN_Shutdown
IN_LL_Shutdown
VID_Shutdown
Segmentation fault (core dumped)
but the core file does accurately show the error
2002-02-27 06:55:21 +00:00
Bill Currie
96c7159f66
keep track of the times of the last event (for those events that report time)
...
and use that instead of CurrentTime in the X selection code (as recommended
by the ICCCM)
2002-01-08 20:07:19 +00:00
Ragnvald Maartmann-Moe IV
f60c39e0bc
Whitespace.
2001-11-07 06:59:10 +00:00
Bill Currie
78a3e398d5
* taniwha gets medieval on extern
2001-10-28 04:23:37 +00:00
Bill Currie
b5341f0d13
we now compile and link with -fno-common. this cleans up the multiple,
...
uninitialized declarations of variables.
2001-10-23 16:55:23 +00:00
Bill Currie
b3914eeaaa
elimination of bare printf (with some exceptions) from libs: Sys_Printf is
...
used instead
2001-10-18 16:42:14 +00:00
Bill Currie
757a0f690c
fix a missing #ifdef HAVE_VIDMODE
2001-10-06 22:57:54 +00:00
Bill Currie
c7031b20f3
move vid_fullcreen definition from *.c to vid.c and declaration from
...
context_x11.h to vid.h and remove all extern decls from *.c
2001-09-28 16:54:31 +00:00
Bill Currie
b1f4a778f9
the rcsid commit from hell }:>
2001-09-28 06:26:31 +00:00
Adam Olsen
678068849e
James' latest fullscreen patch, which works flawlessly for me :)
...
(and if anybody cares about the formatting they can change it AFTER
this is in)
2001-09-18 09:30:59 +00:00
Bill Currie
b79ff6378d
mouse warpage fixes from james
2001-09-18 05:18:49 +00:00
Bill Currie
dd98622859
x11 vid_fullscreen improvements from james (thanks)
2001-09-18 04:53:01 +00:00
Bill Currie
8c026417d8
Wait for X to complete the previous operation before proceding to the next.
...
This causes the mouse to warp properly, but doesn't fix my disappearing window :(
(possibly a wm bug)
2001-09-10 21:55:34 +00:00
Bill Currie
95515e28d7
use XMapRaised instead of XMapWindow + XRaiseWindow
2001-09-10 17:18:31 +00:00
Bill Currie
0f30506b79
d'oh, got the return values backwards
2001-09-10 17:02:35 +00:00
Bill Currie
388513e005
several fullscreen toggling improvements including window location restoration
2001-09-10 16:53:33 +00:00
Bill Currie
a17d8fe452
turns out the window location code is needed after all.
2001-09-10 15:41:47 +00:00
Bill Currie
b788eb6dbd
remove some no-longer needed code (the window coord finder) and quientn
...
the mode setting code a little.
2001-09-08 06:25:37 +00:00
Bill Currie
b12ee9e166
unmap and re-map the window with the correct attributes for the current
...
setting of vid_fullscreen
2001-09-08 05:43:52 +00:00
Bill Currie
822e637e11
s/_windowed_mouse/in_grab/ and in_grab and in_dga now use callbacks
2001-08-30 20:04:13 +00:00
Adam Olsen
bd847e73f1
Add support for dumping backtraces.
2001-08-23 23:34:38 +00:00
Bill Currie
b455458629
exit cleanup. Sys_Error and Sys_Quit should be used whenever possible.
2001-08-02 17:16:12 +00:00
Bill Currie
1c9e1b176f
fear the mighty const correct patch
2001-07-15 07:04:17 +00:00