]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cap_avi.c
physics: fix and refactor unsticking
[xonotic/darkplaces.git] / cap_avi.c
index ea0e35445a4be10f3959c012cd9955f7eb2f11eb..54f636dcd2933fbe2d052d55053c97b611eff94e 100644 (file)
--- a/cap_avi.c
+++ b/cap_avi.c
@@ -504,7 +504,7 @@ void SCR_CaptureVideo_Avi_BeginVideo(void)
        double aspect;
        char vabuf[1024];
 
-       aspect = vid.width / (vid.height * vid_pixelheight.value);
+       aspect = vid.mode.width / (vid.mode.height * vid_pixelheight.value);
 
        cls.capturevideo.format = CAPTUREVIDEOFORMAT_AVI_I420;
        cls.capturevideo.formatextension = "avi";