Yamagi Burmeister
5db73a795b
General cleanup of refresh.c.
...
* Even more syntax and code style fixes.
* Rename functions to match their actual purpose.
* Fix comments.
* SDL initialization and shutdown is now client side only. With
SDL 1.2 finally gone there's no need to involve the renderers
in it.
This breaks the client <-> renderer API. I haven't bumped the API
version with this commit because there're likely more changes when
I'm going through the renderer side of things. The VID backend also
needs a lot of love...
It might be a good idea to move this SDL backend files into the client
and rename them. We'll decide that at a later time.
2018-07-31 14:32:13 +02:00
Yamagi Burmeister
333d19766f
Remove SDL 1.2 support from the build systems.
2018-07-31 14:32:13 +02:00
Yamagi Burmeister
3d9674f3b8
Remove last remnants of SDL 1.2 support troughout the code.
2018-07-31 14:32:13 +02:00
Yamagi Burmeister
ba4706c608
Remove SDL 1.2 from the software renderer.
2018-07-31 14:31:17 +02:00
Yamagi Burmeister
b9c8a8533e
Remove SDL 1.2 support from the menu.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
2099626b7b
Remove SDL 1.2 support from the client side render backend.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
f03e95901f
Remove SDL 1.2 support from the GL3 SDL backend.
...
Do some minor cleanup, while here.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
0e512a8f5d
Some cleanup to the GL1 SDL backend now that's SDL 1.2 is gone.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
5ec3bcdb49
Let SDL calculate the gamma ramp now that X11GAMMA and SDL 1.2 are gone.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
1b68da9a0f
Remove SDL 1.2 from the GL1 SDL backend.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
cc15f0c10c
Remove SDL 1.2 support from the SDL sound backend.
...
While at it do some minor cleanup.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
3f65f7254b
Some general cleanup to the input backup.
...
* Some globals could be made static.
* Add comments were appropriate.
* And format the file to one coding stile. What is so hard with
keeping to one style?! MY IDE is even able to interfere the
style from existing code...
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
4fb271c2df
Remove SDL 1.2 from the input backend.
...
SdL 1.2 had it's time and is becoming a burden. This is the first
in a series of commits that'll remove it from Quake II.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
15898a2330
Remove CDA support from code.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
759bc1be18
Remove X11GAMMA support from code.
...
This just deletes the X11GAMMA code. It doesn't make use of some
refactoring opportunities that're now possible. That will be done
at a later time.
2018-07-31 14:24:28 +02:00
Yamagi Burmeister
307d5eecf7
Remove CDA and X11GAMMA build system support.
...
* CDA was only supported of the client was build with SDL 1.2. Our
Windows binaries had no CDA support for years, I'm pretty sure that
it never worked on Linux and no computer build after 2005 has even
the necessary hardware. So let's just remove it.
* X11GAMMA was a hack to work around SDL 1.2s inability to set the
gamma on newer xorg-server versions. It has been broken for some
time now an is rather ugly. Remove it.
This is the first step in removing SDL 1.2 support.
2018-07-31 14:24:28 +02:00
Yamagi
38a499c335
Merge pull request #313 from 0lvin/edges_limits
...
Scale edge/surfaces/verts on outof....
2018-07-30 18:46:54 +02:00
Denis Pauk
cf4887c4ba
fix issue introduced in e5ef665e:Use more short code in *EdgeSearch
2018-07-30 15:47:00 +03:00
Yamagi
84bb61cea9
Merge pull request #310 from smcv/information
...
Fix spelling of "information", and re-word a comment with multiple typos
2018-07-30 12:31:42 +02:00
Denis Pauk
27cbd0d4e7
reorder copy vid_buffer to texture.
2018-07-29 15:29:00 +03:00
Denis Pauk
ea27c460f2
move trenslate palette based image to full color texture to separate function
2018-07-29 00:04:10 +03:00
Denis Pauk
a4b011c5fd
palette check
2018-07-28 13:57:08 +03:00
Denis Pauk
bec4c4accc
change code style
2018-07-25 21:33:10 +03:00
Denis Pauk
2b9b039139
make r_drawsurf local
2018-07-25 17:49:00 +03:00
Denis Pauk
aec8f3fc8b
make r_dlightframecount and surfrowbytes local
2018-07-25 17:06:23 +03:00
Denis Pauk
fcae2fcbcd
change messages
2018-07-25 15:16:32 +03:00
Denis Pauk
125d6db8b6
code clean up
2018-07-24 23:38:31 +03:00
Denis Pauk
e1a9e7e4e2
add auto reallocate
2018-07-24 17:49:14 +03:00
Denis Pauk
25cb7acda8
Restore allocate buffers on render init
2018-07-24 16:56:42 +03:00
Denis Pauk
a37d6cb07a
clean up code
2018-07-24 16:54:43 +03:00
Denis Pauk
6136900fac
little speedup
2018-07-24 00:16:31 +03:00
Denis Pauk
f9a77d2d66
Share same Mod_DecompressVis
2018-07-23 17:40:06 +03:00
Denis Pauk
ad771fdd99
more warnings
2018-07-23 17:06:39 +03:00
Denis Pauk
789cd0128a
use only allocated finalverts
2018-07-23 16:51:16 +03:00
Denis Pauk
1a5a0922c8
Set bigger limits
2018-07-23 00:34:34 +03:00
Denis Pauk
d36f19fda5
use only allocated surfaces
2018-07-22 17:20:33 +03:00
Denis Pauk
a57b1f9be0
use only allocated edges
2018-07-22 16:50:44 +03:00
Simon McVittie
b9aac1ad9b
Fix spelling of "information", and re-word a comment with multiple typos
2018-07-21 12:03:23 +01:00
Yamagi
d429c91270
Merge pull request #309 from rg3/ogg_enable_fix
...
Fix segfault in OGG_PlayTrack when ogg_enable is set to zero
2018-07-16 16:03:35 +02:00
Ricardo Garcia
d425f40eb6
Fix segfault in OGG_PlayTrack when ogg_enable is set to zero
2018-07-15 09:33:58 +02:00
Yamagi Burmeister
53c6c8fbad
Bump version number to 7.30pre.
2018-07-14 09:39:31 +02:00
Yamagi Burmeister
75300795bd
Bump the version number to 7.21.
2018-07-14 09:38:10 +02:00
Yamagi Burmeister
3b49a66556
Update the CHANGELOG for 7.21.
2018-07-14 09:35:47 +02:00
Yamagi Burmeister
176f95cc7c
Enable backtrace printing on FreeBSD.
...
FreeBSD has supported printing backtraces for years. The API is the same
as on Linux, the only difference is that libexecinfo must be linked as a
seperate library. Since the last FreeBSD version with backtrace support
(FreeBSD 9.3) went out of support some time ago unconditionally enable
the printing.
2018-07-13 14:32:31 +02:00
Yamagi Burmeister
412dfe50b3
Clarify that -portable forces the binary dir as configuration dir.
2018-07-12 19:26:13 +02:00
Yamagi Burmeister
6d014cb21b
Bring the README.md up to date:
...
* Clarify some things.
* Mention GOG.com music compatiblity.
- Always use full links and print them.
2018-07-12 19:19:07 +02:00
Daniel Gibson
a651c23021
commandline argument --help that documents most important arguments
...
quake2 --help, -h, -help, -? and /? now show the most important
commandline arguments
2018-07-10 21:46:57 +02:00
Daniel Gibson
eb259d0c02
Exit game if loading fallback renderer failed
...
If loading gl3 fails, the game tries gl1 instead.
If that fails as well, the game should quit. Now it does.
2018-07-10 21:46:53 +02:00
Yamagi Burmeister
d96a46dc1f
Fix stupid bug when scaling the chat input.
...
The vertical offset must be multiplied with the scale. And not the
scale added onto it... This fixes issue #306 .
2018-06-25 09:41:57 +02:00
Yamagi Burmeister
091e1834eb
Use _wfopen() instead of _wfopen_s to stay compatible with Win XP.
...
I've used _wfopen_s() because it's newer and the older variants are said
to throw warning when build with MSVC. But apparently Windows XP hasn't
got that symbol... So just use the normal _wfopen(), MSVC is unsupported
anyways. The may or may not enough to restore Win XP compatibility.
2018-06-25 08:16:09 +02:00