From 6e8e49d17fa86fc738d80d12d4ebf5b1f860e62c Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 19 May 2015 22:03:47 +0000 Subject: [PATCH] SW: Modify the border-drawing code to work with our widescreen code. git-svn-id: https://svn.eduke32.com/eduke32@5208 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/sw/src/border.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/sw/src/border.c b/polymer/eduke32/source/sw/src/border.c index 960b1f439..c7ba794fd 100644 --- a/polymer/eduke32/source/sw/src/border.c +++ b/polymer/eduke32/source/sw/src/border.c @@ -478,9 +478,9 @@ BorderRefresh(PLAYERp pp) // minus the border if necessary // fill in the sides of the panel when the screen is wide - if (gs.BorderNum >= BORDER_BAR && widescreen) + if (gs.BorderNum >= BORDER_BAR && r_usenewaspect) { - int sidew = (xdim - scale(320, ydim, mulscale16(200, pixelaspect))) / 2; + const int sidew = (xdim - scale(4, ydim, 3)) / 2; x = 0; x2 = xdim - 1;