fix: unglob std::{min, max}, manual stuff

This commit is contained in:
Tropical
2026-03-06 20:47:11 -06:00
parent 967ffbb2a6
commit 04ff82ba70
54 changed files with 126 additions and 126 deletions

View File

@@ -21,10 +21,10 @@ Rect2i *Rect2i::intersect(const Rect2i *other)
int x3 = x2 + other->getWidth();
int y3 = y2 + other->getHeight();
xPos = max(x0, x2);
yPos = max(y0, y2);
width = max(0, min(x1, x3) - xPos);
height = max(0, min(y1, y3) - yPos);
xPos = std::max(x0, x2);
yPos = std::max(y0, y2);
width = std::max(0, std::min(x1, x3) - xPos);
height = std::max(0, std::min(y1, y3) - yPos);
return this;
}