From: divverent Date: Sun, 4 Oct 2009 10:12:57 +0000 (+0000) Subject: tell QC about pixelheight too X-Git-Tag: xonotic-v0.1.0preview~1334 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=02efab8658065d5337fd5a46263aad99f0d14bb4;p=xonotic%2Fdarkplaces.git tell QC about pixelheight too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9299 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/mvm_cmds.c b/mvm_cmds.c index 3ae45ad5..8b193273 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -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; } }