mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
LibGfx+Everywhere: Make DisjointRectSet work for non-int Rects
For convenience, `DisjointIntRectSet` is an alias for `DisjointRectSet<int>`, and is used everywhere for now.
This commit is contained in:
parent
f52413a70e
commit
ff0a2b1a60
13 changed files with 67 additions and 59 deletions
|
@ -127,7 +127,7 @@ void ImageEditor::paint_event(GUI::PaintEvent& event)
|
|||
painter.add_clip_rect(frame_inner_rect());
|
||||
|
||||
{
|
||||
Gfx::DisjointRectSet background_rects;
|
||||
Gfx::DisjointIntRectSet background_rects;
|
||||
background_rects.add(frame_inner_rect());
|
||||
background_rects.shatter(content_rect());
|
||||
for (auto& rect : background_rects.rects())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue