mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-06 07:51:18 +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)
|
R_SetupGL_Viewport_and_Perspective (void)
|
||||||
{
|
{
|
||||||
float screenaspect;
|
float screenaspect;
|
||||||
int x, y, w, h;
|
int x, y2, w, h;
|
||||||
|
|
||||||
// set up viewpoint
|
// set up viewpoint
|
||||||
qfglMatrixMode (GL_PROJECTION);
|
qfglMatrixMode (GL_PROJECTION);
|
||||||
|
@ -455,6 +455,9 @@ R_SetupGL_Viewport_and_Perspective (void)
|
||||||
x = y2 = 0;
|
x = y2 = 0;
|
||||||
w = h = 256;
|
w = h = 256;
|
||||||
} else {
|
} else {
|
||||||
|
x = r_refdef.vrect.x;
|
||||||
|
y2 = (vid.height - (r_refdef.vrect.y + r_refdef.vrect.height));
|
||||||
|
|
||||||
w = r_refdef.vrect.width;
|
w = r_refdef.vrect.width;
|
||||||
h = r_refdef.vrect.height;
|
h = r_refdef.vrect.height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue