got it right this time

This commit is contained in:
Bill Currie 2009-12-23 08:05:03 +00:00 committed by Jeff Teunissen
parent c2945605bc
commit ee0de1b4e1

View file

@ -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;
}