mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37: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
|
@ -469,7 +469,7 @@ void Screen::constrain_pending_flush_rects()
|
|||
if (flush_rects.pending_flush_rects.is_empty())
|
||||
return;
|
||||
Gfx::IntRect screen_rect({}, rect().size());
|
||||
Gfx::DisjointRectSet rects;
|
||||
Gfx::DisjointIntRectSet rects;
|
||||
for (auto& fb_rect : flush_rects.pending_flush_rects) {
|
||||
Gfx::IntRect rect { (int)fb_rect.x, (int)fb_rect.y, (int)fb_rect.width, (int)fb_rect.height };
|
||||
auto intersected_rect = rect.intersected(screen_rect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue