From 991801492ce70d218b2357f8ca14667c01316984 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 30 Mar 2008 00:46:57 +0000 Subject: [PATCH] swap VF_SIZE_X and VF_SIZE_Y definitions to what they should be (this has no effect on behavior, they were simply misnamed internally) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8235 d7cf8633-e32d-0410-b094-e92efae38249 --- clvm_cmds.c | 4 ++-- csprogs.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clvm_cmds.c b/clvm_cmds.c index 3924e6d1..67a219b8 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -764,10 +764,10 @@ void VM_CL_R_SetView (void) r_refdef.view.width = (int)(f[0] * vid.width / vid_conwidth.value); r_refdef.view.height = (int)(f[1] * vid.height / vid_conheight.value); break; - case VF_SIZE_Y: + case VF_SIZE_X: r_refdef.view.width = (int)(k * vid.width / vid_conwidth.value); break; - case VF_SIZE_X: + case VF_SIZE_Y: r_refdef.view.height = (int)(k * vid.height / vid_conheight.value); break; case VF_VIEWPORT: diff --git a/csprogs.h b/csprogs.h index 4605a7e6..8d3278e2 100644 --- a/csprogs.h +++ b/csprogs.h @@ -14,8 +14,8 @@ #define VF_MIN_X 2 //(float) #define VF_MIN_Y 3 //(float) #define VF_SIZE 4 //(vector) (viewport size) -#define VF_SIZE_Y 5 //(float) -#define VF_SIZE_X 6 //(float) +#define VF_SIZE_X 5 //(float) +#define VF_SIZE_Y 6 //(float) #define VF_VIEWPORT 7 //(vector, vector) #define VF_FOV 8 //(vector) #define VF_FOVX 9 //(float) -- 2.39.2