Fixed clipping issues (still present in MSAA, but should be fixed with Skia AA)

This commit is contained in:
Yousef Khadadeh 2026-04-08 20:42:10 +03:00
parent d709acb094
commit 4b2ecf2fe6
4 changed files with 59 additions and 15 deletions

View file

@ -84,6 +84,9 @@ namespace SCollision {
SkRect get_sk_rect() const {
return SkRect::MakeLTRB(static_cast<float>(min.x()), static_cast<float>(min.y()), static_cast<float>(max.x()), static_cast<float>(max.y()));
}
SkIRect get_sk_irect() const {
return SkIRect::MakeLTRB(static_cast<int>(min.x()), static_cast<int>(min.y()), static_cast<int>(max.x()), static_cast<int>(max.y()));
}
};
template <typename T> class Circle {
public: