diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-09-11 23:43:17 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-09-12 01:18:28 -0400 |
| commit | b9e360df7bcb8a1051d0f82d42cc6e9ae047d282 (patch) | |
| tree | c0f7fb97777f693be94570b8f95400c983e2a250 /Source/Core/DolphinWX/FrameAui.cpp | |
| parent | c5685ba53a6866cce5c32bf0c3bbbd7aa52dbf6c (diff) | |
MathUtil: Convert Clamp into a constexpr function
Diffstat (limited to 'Source/Core/DolphinWX/FrameAui.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameAui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/FrameAui.cpp b/Source/Core/DolphinWX/FrameAui.cpp index 346fb03d63..5ac605e101 100644 --- a/Source/Core/DolphinWX/FrameAui.cpp +++ b/Source/Core/DolphinWX/FrameAui.cpp @@ -677,8 +677,8 @@ void CFrame::SetPaneSize() H = Perspectives[ActivePerspective].Height[j]; // Check limits - MathUtil::Clamp<u32>(&W, 5, 95); - MathUtil::Clamp<u32>(&H, 5, 95); + W = MathUtil::Clamp<u32>(W, 5, 95); + H = MathUtil::Clamp<u32>(H, 5, 95); // Convert percentages to pixel lengths W = (W * iClientX) / 100; |
