]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
swap VF_SIZE_X and VF_SIZE_Y definitions to what they should be (this
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 30 Mar 2008 00:46:57 +0000 (00:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 30 Mar 2008 00:46:57 +0000 (00:46 +0000)
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
csprogs.h

index 3924e6d1a56976a5e6e11739affc1369cccf950a..67a219b8f07b52d4541317a0f22edfcaf49410b0 100644 (file)
@@ -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:
index 4605a7e65f86d90463f27ff0b7a14b6c290a5f3e..8d3278e2efdd592102c16990c64556bfb7d801b0 100644 (file)
--- 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)