mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 17:21:24 +00:00
21:9 fix for black bars overlapping fullscreen images
This commit is contained in:
parent
73c7e51391
commit
afb1d438c2
1 changed files with 7 additions and 0 deletions
|
@ -818,6 +818,13 @@ void DCanvas::VirtualToRealCoordsInt(int &x, int &y, int &w, int &h,
|
||||||
void DCanvas::FillBorder (FTexture *img)
|
void DCanvas::FillBorder (FTexture *img)
|
||||||
{
|
{
|
||||||
int myratio = CheckRatio (Width, Height);
|
int myratio = CheckRatio (Width, Height);
|
||||||
|
|
||||||
|
// if 21:9 AR, fill borders akin to 16:9, since all fullscreen
|
||||||
|
// images are being drawn to that scale.
|
||||||
|
if (myratio == 6) {
|
||||||
|
myratio = 2;
|
||||||
|
}
|
||||||
|
|
||||||
if (myratio == 0)
|
if (myratio == 0)
|
||||||
{ // This is a 4:3 display, so no border to show
|
{ // This is a 4:3 display, so no border to show
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue