mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 07:31:53 -07:00
box: fix noNegativeSize
This commit is contained in:
@@ -115,8 +115,8 @@ CBox& CBox::expand(const double& value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CBox& CBox::noNegativeSize() {
|
CBox& CBox::noNegativeSize() {
|
||||||
std::clamp(w, 0.0, std::numeric_limits<double>::infinity());
|
w = std::clamp(w, 0.0, std::numeric_limits<double>::infinity());
|
||||||
std::clamp(h, 0.0, std::numeric_limits<double>::infinity());
|
h = std::clamp(h, 0.0, std::numeric_limits<double>::infinity());
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user