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

@ -146,6 +146,9 @@ class GUIManager {
SCollision::AABB<float> get_invalid_draw_bb_from_command(const Clay_RenderCommand* command);
void update_invalidated_draw_area_from_layout();
void calculate_new_clip_rect(std::vector<SCollision::AABB<float>>& clipRectStack, std::optional<SCollision::AABB<float>>& clipRect, bool& clipNoDraw);
void clip_rect_transform(SkCanvas* canvas, std::vector<SCollision::AABB<float>>& clipRectStack, std::optional<SCollision::AABB<float>>& clipRect, bool& clipNoDraw);
bool setToLayout;
bool setToUpdateInvalidateDrawAreaFromLayout;
bool cursorObstructed;