notify lines
half
full
-
+
*/
int clearconsole;
int clearnotify;
+int lightscalebit;
+float lightscale;
+
qboolean scr_disabled_for_loading;
//qboolean scr_drawloading;
//float scr_disabled_time;
*/
float CalcFov (float fov_x, float width, float height)
{
- float a;
- float x;
+ float a;
+ float x;
- if (fov_x < 1 || fov_x > 179)
- Sys_Error ("Bad fov: %f", fov_x);
+ if (fov_x < 1 || fov_x > 179)
+ Sys_Error ("Bad fov: %f", fov_x);
- x = width/tan(fov_x/360*M_PI);
+ x = width/tan(fov_x/360*M_PI);
- a = atan (height/x);
+ a = atan (height/x);
- a = a*360/M_PI;
+ a = a*360/M_PI;
- return a;
+ return a;
}
/*
if (scr_fov.value > 170)
Cvar_Set ("fov","170");
-// intermission is always full screen
+// intermission is always full screen
if (cl.intermission)
{
full = true;
r_refdef.vrect.x = (vid.width - r_refdef.vrect.width)/2;
if (full)
r_refdef.vrect.y = 0;
- else
+ else
r_refdef.vrect.y = (h - r_refdef.vrect.height)/2;
r_refdef.fov_x = scr_fov.value;
}
-/*
+/*
==============================================================================
SCREEN SHOTS
sprintf (checkname, "%s/%s", com_gamedir, filename);
if (Sys_FileTime(checkname) == -1)
break; // file doesn't exist
- }
+ }
if (i==10000)
{
Con_Printf ("SCR_ScreenShot_f: Couldn't create a TGA file\n");
}
buffer = qmalloc(glwidth*glheight*3);
- glReadPixels (glx, gly, glwidth, glheight, GL_RGB, GL_UNSIGNED_BYTE, buffer);
+ glReadPixels (glx, gly, glwidth, glheight, GL_RGB, GL_UNSIGNED_BYTE, buffer);
Image_WriteTGARGB_preflipped(filename, glwidth, glheight, buffer);
qfree(buffer);
x = (vid.width - l*8)/2;
// LordHavoc: speedup
// for (j=0 ; j<l ; j++, x+=8)
-// Draw_Character (x, y, start[j]);
+// Draw_Character (x, y, start[j]);
Draw_String (x, y, start, l);
y += 8;
GL_BeginRendering (&glx, &gly, &glwidth, &glheight);
+ if (gl_combine.value && !gl_combine_extension)
+ Cvar_SetValue("gl_combine", false);
+
+ lighthalf = gl_lightmode.value;
+
+ lightscalebit = 0;
+ if (lighthalf)
+ lightscalebit += 1;
+
+ if (gl_combine.value)
+ lightscalebit += 2;
+
+ lightscale = 1.0f / (float) (1 << lightscalebit);
+
//
// determine size of refresh window
//