Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | |||||
102 | { | 102 | { | ||
103 | foreach (Window *w, m_windows) { | 103 | foreach (Window *w, m_windows) { | ||
104 | delete w; | 104 | delete w; | ||
105 | } | 105 | } | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | // returns mask and possibly modified region | 108 | // returns mask and possibly modified region | ||
109 | void Scene::paintScreen(int* mask, const QRegion &damage, const QRegion &repaint, | 109 | void Scene::paintScreen(int* mask, const QRegion &damage, const QRegion &repaint, | ||
110 | QRegion *updateRegion, QRegion *validRegion, const QMatrix4x4 &projection) | 110 | QRegion *updateRegion, QRegion *validRegion, const QMatrix4x4 &projection, const QRect &outputGeometry) | ||
111 | { | 111 | { | ||
112 | const QSize &screenSize = screens()->size(); | 112 | const QSize &screenSize = screens()->size(); | ||
113 | const QRegion displayRegion(0, 0, screenSize.width(), screenSize.height()); | 113 | const QRegion displayRegion(0, 0, screenSize.width(), screenSize.height()); | ||
114 | *mask = (damage == displayRegion) ? 0 : PAINT_SCREEN_REGION; | 114 | *mask = (damage == displayRegion) ? 0 : PAINT_SCREEN_REGION; | ||
115 | 115 | | |||
116 | updateTimeDiff(); | 116 | updateTimeDiff(); | ||
117 | // preparation step | 117 | // preparation step | ||
118 | static_cast<EffectsHandlerImpl*>(effects)->startPaint(); | 118 | static_cast<EffectsHandlerImpl*>(effects)->startPaint(); | ||
Show All 23 Lines | |||||
142 | 142 | | |||
143 | painted_region = region; | 143 | painted_region = region; | ||
144 | repaint_region = repaint; | 144 | repaint_region = repaint; | ||
145 | 145 | | |||
146 | if (*mask & PAINT_SCREEN_BACKGROUND_FIRST) { | 146 | if (*mask & PAINT_SCREEN_BACKGROUND_FIRST) { | ||
147 | paintBackground(region); | 147 | paintBackground(region); | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | ScreenPaintData data(projection); | 150 | ScreenPaintData data(projection, outputGeometry); | ||
151 | effects->paintScreen(*mask, region, data); | 151 | effects->paintScreen(*mask, region, data); | ||
152 | 152 | | |||
153 | foreach (Window *w, stacking_order) { | 153 | foreach (Window *w, stacking_order) { | ||
154 | effects->postPaintWindow(effectWindow(w)); | 154 | effects->postPaintWindow(effectWindow(w)); | ||
155 | } | 155 | } | ||
156 | 156 | | |||
157 | effects->postPaintScreen(); | 157 | effects->postPaintScreen(); | ||
158 | 158 | | |||
▲ Show 20 Lines • Show All 944 Lines • Show Last 20 Lines |