]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
vid: consolidate mode structures
[xonotic/darkplaces.git] / csprogs.c
index d9d8630ac3a08cb69d160179646be9aac9a2fa06..da5bd77eeff2f768aa7b3a723166a58c0eddc915 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -510,8 +510,8 @@ qbool CL_VM_UpdateView (double frametime)
        // free memory for resources that are no longer referenced
        PRVM_GarbageCollection(prog);
        // pass in width and height and menu/focus state as parameters (EXT_CSQC_1)
-       PRVM_G_FLOAT(OFS_PARM0) = vid.width;
-       PRVM_G_FLOAT(OFS_PARM1) = vid.height;
+       PRVM_G_FLOAT(OFS_PARM0) = vid.mode.width;
+       PRVM_G_FLOAT(OFS_PARM1) = vid.mode.height;
        /*
         * This should be fine for now but FTEQW uses flags for keydest
         * and checks that an array called "eyeoffset" is 0