From 1704f16ae50aa126f634eff80573dc942c14d3ad Mon Sep 17 00:00:00 2001 From: drfrag Date: Sun, 1 Nov 2020 17:25:31 +0100 Subject: [PATCH] - Scale the scroller images so that the center 4:3 area is always fully visible. --- src/intermission/intermission.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/intermission/intermission.cpp b/src/intermission/intermission.cpp index 4c44e8a6f..15b792a73 100644 --- a/src/intermission/intermission.cpp +++ b/src/intermission/intermission.cpp @@ -53,6 +53,8 @@ #include "templates.h" #include "s_music.h" +#define ScaleToFit43 3 + FIntermissionDescriptorList IntermissionDescriptors; IMPLEMENT_CLASS(DIntermissionScreen, false, false) @@ -751,7 +753,7 @@ void DIntermissionScreenScroller::Drawer () // Now set a clipping rectangle for the intended viewport double displayratio = atotalwidth / double(aheight) - 4./3.; double displaywidth = aheight * displayratio; - screen->CalcFullscreenScale(displaywidth, aheight, gameinfo.fullscreenautoaspect, drect); + screen->CalcFullscreenScale(displaywidth, aheight, ScaleToFit43, drect); screen->SetClipRect(int(drect.left), int(drect.top), int(drect.width), int(drect.height)); int ticker = clamp(mTicker - mScrollDelay, 0, mScrollTime); @@ -790,7 +792,7 @@ void DIntermissionScreenScroller::Drawer () else { // guesstimate the intended aspect ratio. - screen->CalcFullscreenScale(fwidth, aheight, gameinfo.fullscreenautoaspect, drect); + screen->CalcFullscreenScale(fwidth, aheight, ScaleToFit43, drect); screen->SetClipRect(int(drect.left), int(drect.top), int(drect.width), int(drect.height)); int ticker = clamp(mTicker - mScrollDelay, 0, mScrollTime);