Changeset View
Changeset View
Standalone View
Standalone View
effects/screenedge/screenedgeeffect.cpp
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 82 | for (QHash<ElectricBorder, Glow*>::iterator it = m_borders.begin(); | |||
---|---|---|---|---|---|
84 | ++it) { | 84 | ++it) { | ||
85 | if ((*it)->strength == 0.0) { | 85 | if ((*it)->strength == 0.0) { | ||
86 | continue; | 86 | continue; | ||
87 | } | 87 | } | ||
88 | data.paint += (*it)->geometry; | 88 | data.paint += (*it)->geometry; | ||
89 | } | 89 | } | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | void ScreenEdgeEffect::paintScreen(int mask, QRegion region, ScreenPaintData &data) | 92 | void ScreenEdgeEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData &data) | ||
93 | { | 93 | { | ||
94 | effects->paintScreen(mask, region, data); | 94 | effects->paintScreen(mask, region, data); | ||
95 | for (QHash<ElectricBorder, Glow*>::iterator it = m_borders.begin(); | 95 | for (QHash<ElectricBorder, Glow*>::iterator it = m_borders.begin(); | ||
96 | it != m_borders.end(); | 96 | it != m_borders.end(); | ||
97 | ++it) { | 97 | ++it) { | ||
98 | const qreal opacity = (*it)->strength; | 98 | const qreal opacity = (*it)->strength; | ||
99 | if (opacity == 0.0) { | 99 | if (opacity == 0.0) { | ||
100 | continue; | 100 | continue; | ||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |