mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
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:
parent
236e89ed6b
commit
b6a4fc1b58
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue