Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Line(s) | |||||
227 | #ifndef NDEBUG | 227 | #ifndef NDEBUG | ||
228 | if (data.quads.isTransformed()) { | 228 | if (data.quads.isTransformed()) { | ||
229 | qFatal("Pre-paint calls are not allowed to transform quads!"); | 229 | qFatal("Pre-paint calls are not allowed to transform quads!"); | ||
230 | } | 230 | } | ||
231 | #endif | 231 | #endif | ||
232 | if (!w->isPaintingEnabled()) { | 232 | if (!w->isPaintingEnabled()) { | ||
233 | continue; | 233 | continue; | ||
234 | } | 234 | } | ||
235 | phase2.append(Phase2Data(w, infiniteRegion(), data.clip, data.mask, data.quads)); | 235 | phase2.append({w, infiniteRegion(), data.clip, data.mask, data.quads}); | ||
236 | } | 236 | } | ||
237 | 237 | | |||
238 | foreach (const Phase2Data & d, phase2) { | 238 | foreach (const Phase2Data & d, phase2) { | ||
239 | paintWindow(d.window, d.mask, d.region, d.quads); | 239 | paintWindow(d.window, d.mask, d.region, d.quads); | ||
240 | } | 240 | } | ||
241 | 241 | | |||
242 | const QSize &screenSize = screens()->size(); | 242 | const QSize &screenSize = screens()->size(); | ||
243 | damaged_region = QRegion(0, 0, screenSize.width(), screenSize.height()); | 243 | damaged_region = QRegion(0, 0, screenSize.width(), screenSize.height()); | ||
▲ Show 20 Lines • Show All 915 Lines • Show Last 20 Lines |