Changeset View
Changeset View
Standalone View
Standalone View
effects/cubeslide/cubeslide.cpp
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 81 | if (isActive()) { | |||
---|---|---|---|---|---|
82 | data.mask |= PAINT_SCREEN_TRANSFORMED | PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS | PAINT_SCREEN_BACKGROUND_FIRST; | 82 | data.mask |= PAINT_SCREEN_TRANSFORMED | PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS | PAINT_SCREEN_BACKGROUND_FIRST; | ||
83 | timeLine.setCurrentTime(timeLine.currentTime() + time); | 83 | timeLine.setCurrentTime(timeLine.currentTime() + time); | ||
84 | if (windowMoving && timeLine.currentTime() > progressRestriction * (qreal)timeLine.duration()) | 84 | if (windowMoving && timeLine.currentTime() > progressRestriction * (qreal)timeLine.duration()) | ||
85 | timeLine.setCurrentTime(progressRestriction * (qreal)timeLine.duration()); | 85 | timeLine.setCurrentTime(progressRestriction * (qreal)timeLine.duration()); | ||
86 | } | 86 | } | ||
87 | effects->prePaintScreen(data, time); | 87 | effects->prePaintScreen(data, time); | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | void CubeSlideEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 90 | void CubeSlideEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
91 | { | 91 | { | ||
92 | if (isActive()) { | 92 | if (isActive()) { | ||
93 | glEnable(GL_CULL_FACE); | 93 | glEnable(GL_CULL_FACE); | ||
94 | glCullFace(GL_FRONT); | 94 | glCullFace(GL_FRONT); | ||
95 | paintSlideCube(mask, region, data); | 95 | paintSlideCube(mask, region, data); | ||
96 | glCullFace(GL_BACK); | 96 | glCullFace(GL_BACK); | ||
97 | paintSlideCube(mask, region, data); | 97 | paintSlideCube(mask, region, data); | ||
98 | glDisable(GL_CULL_FACE); | 98 | glDisable(GL_CULL_FACE); | ||
▲ Show 20 Lines • Show All 573 Lines • Show Last 20 Lines |