Commit 253b0ed8 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scene: Rename Phase2Data::clip to Phase2Data::opaque

It makes code easier to understand.
parent aac0609b
......@@ -346,7 +346,7 @@ void Scene::preparePaintGenericScreen()
m_paintContext.phase2Data.append(Phase2Data{
.window = sceneWindow,
.region = infiniteRegion(),
.clip = data.clip,
.opaque = data.clip,
.mask = data.mask,
});
}
......@@ -392,7 +392,7 @@ void Scene::preparePaintSimpleScreen()
m_paintContext.phase2Data.append(Phase2Data{
.window = sceneWindow,
.region = data.paint,
.clip = data.clip,
.opaque = data.clip,
.mask = data.mask,
});
}
......@@ -405,7 +405,7 @@ void Scene::preparePaintSimpleScreen()
const auto &paintData = m_paintContext.phase2Data.at(i);
surfaceDamage += paintData.region - opaque;
if (!(paintData.mask & PAINT_WINDOW_TRANSLUCENT)) {
opaque += paintData.clip;
opaque += paintData.opaque;
}
}
......@@ -554,7 +554,7 @@ void Scene::paintSimpleScreen(int, const QRegion &region)
data->region = visible & item->mapToGlobal(item->boundingRect());
if (!(data->mask & PAINT_WINDOW_TRANSLUCENT)) {
visible -= data->clip;
visible -= data->opaque;
}
}
......
......@@ -250,7 +250,7 @@ protected:
struct Phase2Data {
Window *window = nullptr;
QRegion region;
QRegion clip;
QRegion opaque;
int mask = 0;
};
......
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