mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Merge pull request #3026 from lioncash/constexpr
MathUtil: Make Clamp and IsPow2 constexpr functions.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user