diff options
author | James Rowe <jroweboy@gmail.com> | 2016-11-05 09:58:11 +0100 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2016-11-05 10:46:43 +0100 |
commit | d9305b0a074a255eb484911db70a126a6fe347b1 (patch) | |
tree | fcd629c513d4c8d217bf89069b288a39debb594f /src/common/math_util.h | |
parent | Rework frame layouts to use a max rectangle instead of hardcoded calculations (diff) | |
download | yuzu-d9305b0a074a255eb484911db70a126a6fe347b1.tar yuzu-d9305b0a074a255eb484911db70a126a6fe347b1.tar.gz yuzu-d9305b0a074a255eb484911db70a126a6fe347b1.tar.bz2 yuzu-d9305b0a074a255eb484911db70a126a6fe347b1.tar.lz yuzu-d9305b0a074a255eb484911db70a126a6fe347b1.tar.xz yuzu-d9305b0a074a255eb484911db70a126a6fe347b1.tar.zst yuzu-d9305b0a074a255eb484911db70a126a6fe347b1.zip |
Diffstat (limited to 'src/common/math_util.h')
-rw-r--r-- | src/common/math_util.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h index 570ec8e56..9e630d93d 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h @@ -45,10 +45,8 @@ struct Rectangle { return Rectangle{left, top + y, right, bottom + y}; } Rectangle<T> Scale(const float s) const { - ASSERT(s > 0); - return Rectangle { - left, top, static_cast<T>((right + left) * s), static_cast<T>((top + bottom) * s) - }; + return Rectangle{left, top, static_cast<T>((right + left) * s), + static_cast<T>((top + bottom) * s)}; } }; |