]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
tell QC about pixelheight too
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Oct 2009 10:12:57 +0000 (10:12 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Oct 2009 10:12:57 +0000 (10:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9299 d7cf8633-e32d-0410-b094-e92efae38249

mvm_cmds.c

index 3ae45ad577cf56829c32a4fb808249d2525923ed..8b19327311d03ba4a7be5dd38762ba6b1e0457d5 100644 (file)
@@ -239,9 +239,10 @@ void VM_M_getresolution(void)
        }
        else
        {
-               PRVM_G_VECTOR(OFS_RETURN)[0] = (fs ? video_resolutions : video_resolutions_hardcoded)[nr].width;
-               PRVM_G_VECTOR(OFS_RETURN)[1] = (fs ? video_resolutions : video_resolutions_hardcoded)[nr].height;
-               PRVM_G_VECTOR(OFS_RETURN)[2] = 0;
+               video_resolution_t *r = &((fs ? video_resolutions : video_resolutions_hardcoded)[nr]);
+               PRVM_G_VECTOR(OFS_RETURN)[0] = r->width;
+               PRVM_G_VECTOR(OFS_RETURN)[1] = r->height;
+               PRVM_G_VECTOR(OFS_RETURN)[2] = r->pixelheight;
        }
 }