diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-05-17 02:33:43 +0000 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-05-17 02:33:43 +0000 |
commit | cc8eff1d58ca84768337616ec608d68e12bb9844 (patch) | |
tree | b037e4fa341450a004d744fbaa1b65f5b05c0a4e /src/util.cpp | |
parent | dcdcfe175174a0a94997fc3d3d34102b0912b00e (diff) |
Enable scaling (updated)sandbox/ruke47/scaling
Fix scaling based width.
Change-Id: I9b22f18ae184f014097012c917137ed982e74668
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |