Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | |||||
95 | Scene::Scene(QObject *parent) | 95 | Scene::Scene(QObject *parent) | ||
96 | : QObject(parent) | 96 | : QObject(parent) | ||
97 | { | 97 | { | ||
98 | last_time.invalidate(); // Initialize the timer | 98 | last_time.invalidate(); // Initialize the timer | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | Scene::~Scene() | 101 | Scene::~Scene() | ||
102 | { | 102 | { | ||
103 | qDeleteAll(m_windows); | 103 | Q_ASSERT(m_windows.isEmpty()); | ||
104 | } | 104 | } | ||
105 | 105 | | |||
106 | // returns mask and possibly modified region | 106 | // returns mask and possibly modified region | ||
107 | void Scene::paintScreen(int* mask, const QRegion &damage, const QRegion &repaint, | 107 | void Scene::paintScreen(int* mask, const QRegion &damage, const QRegion &repaint, | ||
108 | QRegion *updateRegion, QRegion *validRegion, const QMatrix4x4 &projection, const QRect &outputGeometry) | 108 | QRegion *updateRegion, QRegion *validRegion, const QMatrix4x4 &projection, const QRect &outputGeometry) | ||
109 | { | 109 | { | ||
110 | const QSize &screenSize = screens()->size(); | 110 | const QSize &screenSize = screens()->size(); | ||
111 | const QRegion displayRegion(0, 0, screenSize.width(), screenSize.height()); | 111 | const QRegion displayRegion(0, 0, screenSize.width(), screenSize.height()); | ||
▲ Show 20 Lines • Show All 1046 Lines • Show Last 20 Lines |