Commit Graph

26 Commits

Author SHA1 Message Date
Kevin Shanahan
f09d13d07a vid: constify source bitmap for D_BeginDirectRect
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 16:14:59 +10:30
Kevin Shanahan
7d7b1e773a vid: set the window name properly on x11
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-09 18:55:26 +10:30
Kevin Shanahan
5c78966418 input: move X11 IN_Commands to in_x11.c
X11 GLQuake now picks up the proper handling of mouse grab/release when
menus or console are active.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-09 18:14:33 +10:30
Kevin Shanahan
26ebc05459 input: move shared X11 IN_Move to in_x11.c
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-09 18:07:56 +10:30
Kevin Shanahan
ea72041593 trivial: remove whitespace between type and varable for casts
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-16 12:59:49 +10:30
Kevin Shanahan
c4443197be vid: fix vid_x build break due to modelgen.h merge
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-30 06:39:09 +10:30
Kevin Shanahan
9ac39cae20 build: make use of xf86dga optional for x11
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-24 20:53:56 +10:30
Kevin Shanahan
ba26d5cf4c vid: respect MAXHEIGHT in vid mode selection
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-20 17:05:11 +10:30
Kevin Shanahan
b758409f2e video: Add experimental SDL renderer for Win32
This is a rather large patch which adds an experimental SDL rendering
target for Win32 (software renderer only). Changes to support SDL input
spilled over into a number of other areas - most notably the big churn in
keys.h to match the key symbols to those of SDL.

Credit to the Quakeforge project, whose sources were very helpful for me
in working out how this all fits together.

Compile with USE_SDL=Y to select the experimental target (tyr-quake.exe
and tyr-qwcl.exe only). Expect that not everything works - e.g. A single
800x600 video mode is hard coded right now.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-07 17:39:29 +10:30
Kevin Shanahan
bc256958cc Ignore X11 ConfigureNotify events where width/height is unchanged
Add a comment to fix later because I want to understand why I seem to
receive a stream of these events all the time...

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-01-08 20:30:29 +10:30
Tyrann
c7b2eabfb0 trivial: remove some unused code 2011-12-31 08:49:22 +10:00
Tyrann
9226ba1adb XK_KP_Begin is the '5' key on the number pad
...and remove redundant assignment.
2011-12-31 08:46:49 +10:00
Tyrann
41386415a4 fix screen.h include in vid_x.c 2011-12-31 07:37:09 +10:00
Tyrann
5a511e082a Remove hack for missing XShmGetEventBase() declaration
Looks like xorg fixed the headers at some stage.
2011-12-31 07:34:30 +10:00
Tyrann
9d25ce27c2 trivial: remove various redundant variable assignments
clang found a number of places where we redundantly set a variable to
some value and never read it back (before it is assigned
again). Remove those cases. A couple were cases of trying to silence
the compiler, but modern versions of gcc seem to have made some of
these unneccessary.
2011-12-28 11:41:14 +10:00
Tyrann
264484c6ef [PATCH] Extra mouse button support under linux
As requested by Jonas Nicolaisen <J.Nicolaisen@gmx.net>. Actually, I can't
really verify that this works, since I don't have that many buttons myself.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-12-30 22:43:02 +10:30
Tyrann
2e2b43826b [PATCH] Printf format/usage fixes
Fix a bunch of incorrect uses and type mismatches in our printf-like functions,
revealed by the previous gcc attribute patches.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-10-01 22:39:39 +09:30
Tyrann
b9ef6b0793 [PATCH] Add gcc "noreturn" attribute to a few functions
Annotate a few functions (BOPS_Error, Sys_Error, Sys_Quit and SV_Error) with
the gcc attribute "noreturn" and clean up a few lines of dead code which were
only there previously to quiet the corresponding compiler warnings.

Based on a patch from O.Sezer <sezero@users.sourceforge.net>

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-10-01 22:39:38 +09:30
Ozkan Sezer
1627407229 [PATCH] Move sound init call site
Moved the sound init call from VID_Init() to Host_Init() in all versions.
while there, removed the unnecessary linux ifdef from the quakeworld init
sequence and made it to use a uniform one.

Signed-off-by: O.Sezer <sezero@users.sourceforge.net>
Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-09-09 21:51:40 +09:30
Tyrann
99288edd32 [PATCH] Fix compiler warnings in vid_x.c
Another bunch of (harmless, I think) warnings that have been around for a long
time. This should be the last for now, so I have a fully warning-free build.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-08-12 17:42:55 +09:30
Tyrann
766ccca090 [PATCH] 64-bit fixes for vid_x.c
Fix up incorrect use of long for mapping 24-bit pixels. While we're at it,
clean up a bit of whitespace and one technically incorrect unsigned int
delaration in gl_vidlinuxglx.c.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-07-30 20:42:01 +09:30
Tyrann
ea80308def [PATCH] Add mouse wheel events to software X11 driver
Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-07-15 15:15:19 +09:30
Tyrann
9c9c385cce [PATCH] Fix hang in SCR_ModalMessage for X11
SCR_ModalMessage relies on Sys_SendKeyEvents to return a keypress in response
to the message. The however, X11 software renderer wasn't doing this. This
patch fixes the software X11 renderer (heh, probably should be in the input
driver), bringing it closer into line with the GLX renderer.

Bug reported by Steven A <stevenaaus@yahoo.com>.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-07-15 15:15:13 +09:30
Steven Atkinson
576497e1c4 [PATCH] Allow "-w" as shorthand for "-window" on the command line
Signed-off-by: Steven Atkinson <stevenaaus@yahoo.com.au>

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-10-10 10:23:06 +09:30
Tyrann
04a7a84053 [PATCH] Dead code removal
Remove some dead code and a small whitespace fix.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2006-09-10 19:05:57 +09:30
Tyrann
130e22195a Import v0.47 sources 2006-09-10 19:02:51 +09:30