Changeset View
Changeset View
Standalone View
Standalone View
scene.cpp
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Line(s) | |||||
188 | { | 188 | { | ||
189 | // Don't break time since last paint for the next pass. | 189 | // Don't break time since last paint for the next pass. | ||
190 | last_time.invalidate(); | 190 | last_time.invalidate(); | ||
191 | } | 191 | } | ||
192 | 192 | | |||
193 | // the function that'll be eventually called by paintScreen() above | 193 | // the function that'll be eventually called by paintScreen() above | ||
194 | void Scene::finalPaintScreen(int mask, QRegion region, ScreenPaintData& data) | 194 | void Scene::finalPaintScreen(int mask, QRegion region, ScreenPaintData& data) | ||
195 | { | 195 | { | ||
196 | if (mask & (PAINT_SCREEN_TRANSFORMED | PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS)) | 196 | // if (mask & (PAINT_SCREEN_TRANSFORMED | PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS)) | ||
197 | paintGenericScreen(mask, data); | 197 | paintGenericScreen(mask, data); | ||
198 | else | 198 | // else | ||
199 | paintSimpleScreen(mask, region); | 199 | // paintSimpleScreen(mask, region); | ||
200 | } | 200 | } | ||
201 | 201 | | |||
202 | // The generic painting code that can handle even transformations. | 202 | // The generic painting code that can handle even transformations. | ||
203 | // It simply paints bottom-to-top. | 203 | // It simply paints bottom-to-top. | ||
204 | void Scene::paintGenericScreen(int orig_mask, ScreenPaintData) | 204 | void Scene::paintGenericScreen(int orig_mask, ScreenPaintData) | ||
205 | { | 205 | { | ||
206 | if (!(orig_mask & PAINT_SCREEN_BACKGROUND_FIRST)) { | 206 | if (!(orig_mask & PAINT_SCREEN_BACKGROUND_FIRST)) { | ||
207 | paintBackground(infiniteRegion()); | 207 | paintBackground(infiniteRegion()); | ||
▲ Show 20 Lines • Show All 950 Lines • Show Last 20 Lines |