Fixed clipping issues (still present in MSAA, but should be fixed with Skia AA)
This commit is contained in:
parent
d709acb094
commit
4b2ecf2fe6
4 changed files with 59 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue