Fix for not compiling in sw.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1652 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-12-01 02:20:48 +00:00
parent 470804d958
commit 4fa99b476c

View file

@ -1264,7 +1264,8 @@ void SCR_VRectForPlayer(vrect_t *vrect, int pnum)
case 2: //horizontal bands
case 3:
if (glwidth > glheight * 2)
#ifdef GLQUAKE
if (qrenderer == QR_OPENGL && glwidth > glheight * 2)
{ //over twice as wide as high, assume duel moniter, horizontal.
vrect->width = vid.width/cl.splitclients;
vrect->height = vid.height;
@ -1272,6 +1273,7 @@ void SCR_VRectForPlayer(vrect_t *vrect, int pnum)
vrect->y = 0;
}
else
#endif
{
vrect->width = vid.width;
vrect->height = vid.height/cl.splitclients;