mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-20 10:53:22 +00:00
video: revert commit 97e149ba9e
, implement a better fix for this.
This commit is contained in:
parent
6ced6809c6
commit
9ae8192f04
2 changed files with 7 additions and 13 deletions
|
@ -330,7 +330,6 @@ static void
|
|||
SCR_CalcVrect(void)
|
||||
{
|
||||
int size;
|
||||
static int prev_size;
|
||||
|
||||
/* bound viewsize */
|
||||
if (scr_viewsize->value < 40)
|
||||
|
@ -345,12 +344,6 @@ SCR_CalcVrect(void)
|
|||
|
||||
size = scr_viewsize->value;
|
||||
|
||||
if (size != prev_size)
|
||||
{
|
||||
prev_size = size;
|
||||
cl.force_refdef = true;
|
||||
}
|
||||
|
||||
scr_vrect.width = viddef.width * size / 100;
|
||||
scr_vrect.width &= ~1;
|
||||
|
||||
|
|
|
@ -534,12 +534,6 @@ V_RenderView(float stereo_separation)
|
|||
cl.refdef.vieworg[1] += 1.0 / 16;
|
||||
cl.refdef.vieworg[2] += 1.0 / 16;
|
||||
|
||||
cl.refdef.x = scr_vrect.x;
|
||||
cl.refdef.y = scr_vrect.y;
|
||||
cl.refdef.width = scr_vrect.width;
|
||||
cl.refdef.height = scr_vrect.height;
|
||||
cl.refdef.fov_y = CalcFov(cl.refdef.fov_x, (float)cl.refdef.width,
|
||||
(float)cl.refdef.height);
|
||||
cl.refdef.time = cl.time * 0.001f;
|
||||
|
||||
cl.refdef.areabits = cl.frame.areabits;
|
||||
|
@ -580,6 +574,13 @@ V_RenderView(float stereo_separation)
|
|||
entitycmpfnc);
|
||||
}
|
||||
|
||||
cl.refdef.x = scr_vrect.x;
|
||||
cl.refdef.y = scr_vrect.y;
|
||||
cl.refdef.width = scr_vrect.width;
|
||||
cl.refdef.height = scr_vrect.height;
|
||||
cl.refdef.fov_y = CalcFov(cl.refdef.fov_x, (float)cl.refdef.width,
|
||||
(float)cl.refdef.height);
|
||||
|
||||
R_RenderFrame(&cl.refdef);
|
||||
|
||||
if (cl_stats->value)
|
||||
|
|
Loading…
Reference in a new issue