mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
got it right this time
This commit is contained in:
parent
c2945605bc
commit
ee0de1b4e1
1 changed files with 4 additions and 1 deletions
|
@ -445,7 +445,7 @@ static void
|
|||
R_SetupGL_Viewport_and_Perspective (void)
|
||||
{
|
||||
float screenaspect;
|
||||
int x, y, w, h;
|
||||
int x, y2, w, h;
|
||||
|
||||
// set up viewpoint
|
||||
qfglMatrixMode (GL_PROJECTION);
|
||||
|
@ -455,6 +455,9 @@ R_SetupGL_Viewport_and_Perspective (void)
|
|||
x = y2 = 0;
|
||||
w = h = 256;
|
||||
} else {
|
||||
x = r_refdef.vrect.x;
|
||||
y2 = (vid.height - (r_refdef.vrect.y + r_refdef.vrect.height));
|
||||
|
||||
w = r_refdef.vrect.width;
|
||||
h = r_refdef.vrect.height;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue