From afb1d438c2611c4e7564c5114868eced67dd6cc0 Mon Sep 17 00:00:00 2001 From: Michael Labbe Date: Wed, 2 Mar 2016 12:33:06 -0800 Subject: [PATCH] 21:9 fix for black bars overlapping fullscreen images --- src/v_draw.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/v_draw.cpp b/src/v_draw.cpp index ca9f9ae72..bf3a65cdf 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -818,6 +818,13 @@ void DCanvas::VirtualToRealCoordsInt(int &x, int &y, int &w, int &h, void DCanvas::FillBorder (FTexture *img) { 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) { // This is a 4:3 display, so no border to show return;