From fccb0b76c6a99954628b8c819fbddb018ee8a061 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 22 Jul 2018 12:34:33 -0400 Subject: [PATCH] - fixed: correct the functionality of the 'min' function in the scaling code --- src/r_videoscale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_videoscale.cpp b/src/r_videoscale.cpp index a1f4b1170..14a0c0ecd 100644 --- a/src/r_videoscale.cpp +++ b/src/r_videoscale.cpp @@ -103,7 +103,7 @@ bool ViewportLinearScale() inline int min(int a, int b) { - return (a < b) ? a : b; + return (a > b) ? a : b; } int ViewportScaledWidth(int width, int height)