cvar_t scr_screenshot_name = {0, "scr_screenshot_name","dp"};
cvar_t cl_avidemo = {0, "cl_avidemo", "0"};
cvar_t r_textshadow = {0, "r_textshadow", "0"};
+cvar_t r_letterbox = {0, "r_letterbox", "0"};
int jpeg_supported = false;
Cvar_RegisterVariable (&scr_screenshot_jpeg_quality);
Cvar_RegisterVariable (&cl_avidemo);
Cvar_RegisterVariable (&r_textshadow);
+ Cvar_RegisterVariable (&r_letterbox);
Cmd_AddCommand ("sizeup",SCR_SizeUp_f);
Cmd_AddCommand ("sizedown",SCR_SizeDown_f);
SCR_DrawNet ();
SCR_DrawTurtle ();
SCR_DrawPause ();
- Sbar_Draw();
+ if (!r_letterbox.value)
+ Sbar_Draw();
SHOWLMP_drawall();
SCR_CheckDrawCenterString();
}
if (r_stereo_sidebyside.integer)
{
r_refdef.width = vid.realwidth * size / 2.5;
- r_refdef.height = vid.realheight * size / 2.5;
+ r_refdef.height = vid.realheight * size / 2.5 * (1 - bound(0, r_letterbox.value, 100) / 100);
r_refdef.x = (vid.realwidth - r_refdef.width * 2.5) * 0.5;
r_refdef.y = (vid.realheight - r_refdef.height)/2;
if (r_stereo_side)
else
{
r_refdef.width = vid.realwidth * size;
- r_refdef.height = vid.realheight * size;
+ r_refdef.height = vid.realheight * size * (1 - bound(0, r_letterbox.value, 100) / 100);
r_refdef.x = (vid.realwidth - r_refdef.width)/2;
r_refdef.y = (vid.realheight - r_refdef.height)/2;
}
"KRIMZON_SV_PARSECLIENTCOMMAND "
"NEH_CMD_PLAY2 "
"NEH_RESTOREGAME "
+"PXQ_GFX_LETTERBOX "
"TENEBRAE_GFX_DLIGHTS "
"TW_SV_STEPCONTROL "
;
vec3_t v1, v2, spriteorigin;
vec_t spritescale;
vec4_t color;
+ if (r_letterbox.value)
+ return;
if (crosshair_static.integer)
return;
num = crosshair.integer;
int num;
cachepic_t *pic;
vec4_t color;
+ if (r_letterbox.value)
+ return;
if (!crosshair_static.integer)
return;
num = crosshair.integer;
extern cvar_t scr_conspeed;
extern cvar_t scr_conalpha;
extern cvar_t scr_conbrightness;
+extern cvar_t r_letterbox;
#endif