mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
WindowServer: Only blit dirty rect of windows to back buffer.
Previously we'd blit every pixel in every window that intersected any dirty rect to the back buffer. With this patch, we limit ourselves to blitting the pixels inside the actual dirty rects. There's still a lot of optimizations to make in this code.
This commit is contained in:
@@ -8,7 +8,7 @@ void Rect::intersect(const Rect& other)
|
||||
int t = max(top(), other.top());
|
||||
int b = min(bottom(), other.bottom());
|
||||
|
||||
if (l >= r || t >= b) {
|
||||
if (l > r || t > b) {
|
||||
m_location = { };
|
||||
m_size = { };
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user