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>
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>
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>
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.
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>
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>
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>
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>
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>
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>
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>