commit db8a80473feaba572e4c9c486eae1e8c86bd4667
Author: Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Sat Mar 24 16:25:56 2018 -0700
Commit: Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Sat Mar 24 16:25:56 2018 -0700
video: allow integer_scaling to still force an 8:5 ratio
---
src/i_video.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index 989d447d..c44a8a6c 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -290,7 +290,7 @@ void I_StartFrame (void)
// ratio consistent with the aspect_ratio_correct variable.
static void AdjustWindowSize(void)
{
- if (aspect_ratio_correct)
+ if (aspect_ratio_correct || integer_scaling)
{
if (window_width * actualheight <= window_height * SCREENWIDTH)
{
@@ -1243,7 +1243,7 @@ static void SetVideoMode(void)
// time this also defines the aspect ratio that is preserved while scaling
// and stretching the texture into the window.
- if (aspect_ratio_correct)
+ if (aspect_ratio_correct || integer_scaling)
{
SDL_RenderSetLogicalSize(renderer,
SCREENWIDTH,