mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
MathUtil: Convert Clamp into a constexpr function
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