Fix 5:4 aspect ratio gun and status bar
This commit is contained in:
parent
ba68cfd611
commit
172f58c165
6 changed files with 21 additions and 13 deletions
|
|
@ -887,7 +887,7 @@ void DCanvas::VirtualToRealCoords(double &x, double &y, double &w, double &h,
|
|||
x = x * Width / vwidth;
|
||||
w = right * Width / vwidth - x;
|
||||
}
|
||||
if (myratio < 1.3f)
|
||||
if (Is54Aspect(myratio))
|
||||
{ // The target surface is 5:4
|
||||
y = (y - vheight * 0.5) * Height * 600 / (vheight * AspectBaseHeight(myratio)) + Height * 0.5;
|
||||
h = (bottom - vheight * 0.5) * Height * 600 / (vheight * AspectBaseHeight(myratio)) + Height * 0.5 - y;
|
||||
|
|
@ -950,7 +950,7 @@ void DCanvas::FillBorder (FTexture *img)
|
|||
return;
|
||||
}
|
||||
int bordtop, bordbottom, bordleft, bordright, bord;
|
||||
if (myratio < 1.3f)
|
||||
if (Is54Aspect(myratio))
|
||||
{ // Screen is taller than it is wide
|
||||
bordleft = bordright = 0;
|
||||
bord = Height - Height * AspectMultiplier(myratio) / 48;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue