summaryrefslogtreecommitdiff
path: root/src/common/math_util.h
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2016-09-18 18:01:46 -0700
committerGravatar Yuri Kunde Schlesner2016-09-18 21:14:25 -0700
commit396a8d91a4423d9c793eeff0798d544613647511 (patch)
treee0203961233db1ffcbbca2e15154d71d142c5822 /src/common/math_util.h
parentTweak formatting settings (diff)
downloadyuzu-396a8d91a4423d9c793eeff0798d544613647511.tar.gz
yuzu-396a8d91a4423d9c793eeff0798d544613647511.tar.xz
yuzu-396a8d91a4423d9c793eeff0798d544613647511.zip
Manually tweak source formatting and then re-run clang-format
Diffstat (limited to '')
-rw-r--r--src/common/math_util.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 696bd43ea..41d89666c 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -27,12 +27,10 @@ struct Rectangle {
27 T right; 27 T right;
28 T bottom; 28 T bottom;
29 29
30 Rectangle() { 30 Rectangle() {}
31 }
32 31
33 Rectangle(T left, T top, T right, T bottom) 32 Rectangle(T left, T top, T right, T bottom)
34 : left(left), top(top), right(right), bottom(bottom) { 33 : left(left), top(top), right(right), bottom(bottom) {}
35 }
36 34
37 T GetWidth() const { 35 T GetWidth() const {
38 return std::abs(static_cast<typename std::make_signed<T>::type>(right - left)); 36 return std::abs(static_cast<typename std::make_signed<T>::type>(right - left));