From 4fa99b476cb71dec3072add22b892e5ac0902a65 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 1 Dec 2005 02:20:48 +0000 Subject: [PATCH] Fix for not compiling in sw. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1652 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/client/view.c b/engine/client/view.c index 2e3d6e7c8..c16a79fd8 100644 --- a/engine/client/view.c +++ b/engine/client/view.c @@ -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;