fix colormod
added frag message filter, and dedicated frag tracker. added 'windowed consoles' for social-type stuff without depending upon csqc mods for it. added in_deviceids command which allows listing/renumbering device ids. slider widgets now support inverted ranges, so gamma selection isn't so weird. fix top/bottom colour selection bug. software banding feature is now part of the 'software' preset (now that it supports mipmaps). support for loading .maps, and editing their brushes etc (with appropriate qc mod). 'map mymap.map' to use. expect problems with missing wads and replacement textures overriding them and messing up texture scales. snd_inactive is now default. fix threading issue with wavs, no more error from 0-sample-but-otherwise-valid wavs. added -makeinstaller option to embed a manifest inside the exe (and icon). the resulting program will insist on installing the game if its run from outside a valid basedir. framegroup support for q1mdl. textures are now loaded on multiple worker threads, for reduced load times. moo har har. netgraph shows packet+byte rates too. added r_lightstylescale, pretty similar to contrast, but doesn't impose any framerate cost, but may have overbrighting issues. r_softwarebanding now works on q2bsp too. fixed crepuscular lights. gzip transfer encoding is performed while downloading, instead of inducing stalls. FINALLY fix ezquake download compat issue (dimman found the issue). git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4851 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
18de6445ba
commit
2201b920c8
107 changed files with 6483 additions and 1851 deletions
|
@ -725,10 +725,18 @@ void R2D_Font_AddFontLink(char *buffer, int buffersize, char *fontname)
|
|||
#endif
|
||||
void R2D_Font_Changed(void)
|
||||
{
|
||||
float tsize;
|
||||
if (!con_textsize.modified)
|
||||
return;
|
||||
con_textsize.modified = false;
|
||||
|
||||
if (con_textsize.value < 0)
|
||||
tsize = (-con_textsize.value * vid.height) / vid.pixelheight;
|
||||
else
|
||||
tsize = con_textsize.value;
|
||||
if (!tsize)
|
||||
tsize = 8;
|
||||
|
||||
if (font_console == font_default)
|
||||
font_console = NULL;
|
||||
if (font_console)
|
||||
|
@ -763,8 +771,8 @@ void R2D_Font_Changed(void)
|
|||
CHOOSEFONTA cf = {sizeof(cf)};
|
||||
extern HWND mainwindow;
|
||||
font_default = Font_LoadFont(8, "");
|
||||
if (con_textsize.ival != 8 && con_textsize.ival >= 1)
|
||||
font_console = Font_LoadFont(con_textsize.ival, "");
|
||||
if (tsize != 8)
|
||||
font_console = Font_LoadFont(tsize, "");
|
||||
if (!font_console)
|
||||
font_console = font_default;
|
||||
|
||||
|
@ -805,11 +813,11 @@ void R2D_Font_Changed(void)
|
|||
if (!font_default && *gl_font.string)
|
||||
font_default = Font_LoadFont(8, "");
|
||||
|
||||
if (con_textsize.ival != 8 && con_textsize.ival >= 1)
|
||||
if (tsize != 8)
|
||||
{
|
||||
font_console = Font_LoadFont(con_textsize.ival, gl_font.string);
|
||||
font_console = Font_LoadFont(tsize, gl_font.string);
|
||||
if (!font_console)
|
||||
font_console = Font_LoadFont(con_textsize.ival, "");
|
||||
font_console = Font_LoadFont(tsize, "");
|
||||
}
|
||||
if (!font_console)
|
||||
font_console = font_default;
|
||||
|
@ -977,6 +985,8 @@ void R2D_BrightenScreen (void)
|
|||
//don't go crazy with brightness. that makes it unusable and is thus unsafe - and worse, lots of people assume its based around 1 (like gamma and contrast are). cap to 0.5
|
||||
if (v_brightness.value > 0.5)
|
||||
v_brightness.value = 0.5;
|
||||
if (v_contrast.value < 0.5)
|
||||
v_contrast.value = 0.5;
|
||||
|
||||
if (r2d_canhwgamma)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue