mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Cleanup: Use std::abs instead of abs.
This commit is contained in:
parent
a205ecb446
commit
4f47cccd9f
3 changed files with 5 additions and 5 deletions
|
@ -70,8 +70,8 @@ struct Rectangle
|
|||
return left == r.left && top == r.top && right == r.right && bottom == r.bottom;
|
||||
}
|
||||
|
||||
T GetWidth() const { return abs(right - left); }
|
||||
T GetHeight() const { return abs(bottom - top); }
|
||||
T GetWidth() const { return std::abs(right - left); }
|
||||
T GetHeight() const { return std::abs(bottom - top); }
|
||||
// If the rectangle is in a coordinate system with a lower-left origin, use
|
||||
// this Clamp.
|
||||
void ClampLL(T x1, T y1, T x2, T y2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue