aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
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);
}
}