fix the glaring error of the sw renderer's aspect ratio. still not quite right for non-4:3 screens, but it's better.

This commit is contained in:
Bill Currie 2009-12-21 10:10:45 +00:00 committed by Jeff Teunissen
parent 236e89ed6b
commit b6a4fc1b58

View file

@ -281,11 +281,11 @@ R_ViewChanged (float aspect)
r_refdef.aliasvrectbottom = r_refdef.aliasvrect.y +
r_refdef.aliasvrect.height;
pixelAspect = (float)r_refdef.vrect.height/(float)r_refdef.vrect.width;
pixelAspect = vid.aspect;
xOrigin = r_refdef.xOrigin;
yOrigin = r_refdef.yOrigin;
screenAspect = 1.0;
screenAspect = r_refdef.vrect.width * pixelAspect / r_refdef.vrect.height;
// 320*200 1.0 pixelAspect = 1.6 screenAspect
// 320*240 1.0 pixelAspect = 1.3333 screenAspect
// proper 320*200 pixelAspect = 0.8333333