graphics: improve setScissor's handling of fractional DPI-scaled coordinates.

This commit is contained in:
Sasha Szpakowski
2026-06-21 14:58:22 -03:00
parent 3eedfb6e1e
commit 142ce87335
11 changed files with 64 additions and 53 deletions
+11
View File
@@ -72,6 +72,17 @@ struct Rect
}
};
struct FRect
{
float x, y;
float w, h;
bool operator == (const FRect &rhs) const
{
return x == rhs.x && y == rhs.y && w == rhs.w && h == rhs.h;
}
};
inline int nextP2(int x)
{
x += (x == 0);