From cc8eff1d58ca84768337616ec608d68e12bb9844 Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Thu, 17 May 2018 02:33:43 +0000 Subject: Enable scaling (updated) Fix scaling based width. Change-Id: I9b22f18ae184f014097012c917137ed982e74668 Signed-off-by: Tadao Tanikawa --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util.cpp b/src/util.cpp index 068e7b8..1fb6ac8 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -55,7 +55,7 @@ void rectangle::scale(int to_w, int to_h, bool keep_aspect) } else { /* use aspect by width */ w = to_h; - h = int64_t(to_h) * int64_t(h) / int64_t(w); + h = int64_t(to_w) * int64_t(h) / int64_t(w); } } -- cgit 1.2.3-korg