Commit 7927b17d authored by David Edmundson's avatar David Edmundson
Browse files

Avoid rounding issues in Surface damage tracking

When a buffer is damaged via damage_buffer we have to map things to
logical space. This mapping can involve floating numbers, most notably
with the X11 override, right now that's via a QRegion which is always
integer. For damage we always want to round outwards to the larger
space, not to the nearest space.
parent 33827bbd
Pipeline #229225 passed with stage
in 13 minutes and 45 seconds
......@@ -30,7 +30,7 @@ static QRegion map_helper(const QMatrix4x4 &matrix, const QRegion &region)
{
QRegion result;
for (const QRect &rect : region) {
result += matrix.mapRect(rect);
result += matrix.mapRect(QRectF(rect)).toAlignedRect();
}
return result;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment