mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +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;
|
||||
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);
|
||||
}
|
||||
else
|
||||
{
|
||||
x = xdim;
|
||||
y = ydim;
|
||||
x = xdimen;
|
||||
y = ydimen;
|
||||
}
|
||||
|
||||
vr = divscale16(x*3, y*4);
|
||||
|
|
Loading…
Reference in a new issue