mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
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:
parent
6aad2578a3
commit
d6e0009ec0
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue