engine: in setaspect_new, determine the aspect with {x,y}dimen instead of {x,y}dim.

That is, use the view boundries instead of the whole screen.

git-svn-id: https://svn.eduke32.com/eduke32@2894 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-08-13 18:26:16 +00:00
parent 6aad2578a3
commit d6e0009ec0

View file

@ -13441,13 +13441,13 @@ void setaspect_new()
x=r_screenxy/100; y=r_screenxy%100; x=r_screenxy/100; y=r_screenxy%100;
if (y==0 || x==0) { x=4; y=3; } if (y==0 || x==0) { x=4; y=3; }
pixratio = divscale16(xdim*y, ydim*x); pixratio = divscale16(xdimen*y, ydimen*x);
yx = divscale16(yx, pixratio); yx = divscale16(yx, pixratio);
} }
else else
{ {
x = xdim; x = xdimen;
y = ydim; y = ydimen;
} }
vr = divscale16(x*3, y*4); vr = divscale16(x*3, y*4);