Changeset View
Changeset View
Standalone View
Standalone View
effects/slide/slide.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 116 | if (effects->optionRollOverDesktops()) { | |||
---|---|---|---|---|---|
123 | r |= (r & QRect(-w, -h, w, h)).translated(w, h); // NW | 123 | r |= (r & QRect(-w, -h, w, h)).translated(w, h); // NW | ||
124 | r |= (r & QRect(w, -h, w, h)).translated(-w, h); // NE | 124 | r |= (r & QRect(w, -h, w, h)).translated(-w, h); // NE | ||
125 | r |= (r & QRect(w, h, w, h)).translated(-w, -h); // SE | 125 | r |= (r & QRect(w, h, w, h)).translated(-w, -h); // SE | ||
126 | r |= (r & QRect(-w, h, w, h)).translated(w, -h); // SW | 126 | r |= (r & QRect(-w, h, w, h)).translated(w, -h); // SW | ||
127 | } | 127 | } | ||
128 | return r; | 128 | return r; | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | void SlideEffect::paintScreen(int mask, QRegion region, ScreenPaintData &data) | 131 | void SlideEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData &data) | ||
132 | { | 132 | { | ||
133 | const bool wrap = effects->optionRollOverDesktops(); | 133 | const bool wrap = effects->optionRollOverDesktops(); | ||
134 | const int w = workspaceWidth(); | 134 | const int w = workspaceWidth(); | ||
135 | const int h = workspaceHeight(); | 135 | const int h = workspaceHeight(); | ||
136 | 136 | | |||
137 | QPoint currentPos = m_startPos + m_diff * m_timeLine.value(); | 137 | QPoint currentPos = m_startPos + m_diff * m_timeLine.value(); | ||
138 | 138 | | |||
139 | // When "Desktop navigation wraps around" checkbox is checked, currentPos | 139 | // When "Desktop navigation wraps around" checkbox is checked, currentPos | ||
▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines |