diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-09-12 02:28:38 -0400 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-09-12 02:28:38 -0400 |
| commit | f121d7a8cd91aa93c15c75a9c35b8a374fe09d72 (patch) | |
| tree | 031843465872f0cd5058a9fc93d57fdbbc4c4933 /Source/Core/DolphinWX/FrameAui.cpp | |
| parent | 4d5baa47723c07177a561633300ec1843cf9171f (diff) | |
| parent | 3f4852a03d8cf174a90ca2c52a2d0e684ac7f7b0 (diff) | |
Merge pull request #3026 from lioncash/constexpr
MathUtil: Make Clamp and IsPow2 constexpr functions.
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; |
