Changeset View
Changeset View
Standalone View
Standalone View
effects/lookingglass/lookingglass.cpp
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Line(s) | 219 | void LookingGlassEffect::slotMouseChanged(const QPoint& pos, const QPoint& old, Qt::MouseButtons, | |||
---|---|---|---|---|---|
220 | Qt::MouseButtons, Qt::KeyboardModifiers, Qt::KeyboardModifiers) | 220 | Qt::MouseButtons, Qt::KeyboardModifiers, Qt::KeyboardModifiers) | ||
221 | { | 221 | { | ||
222 | if (pos != old && m_enabled) { | 222 | if (pos != old && m_enabled) { | ||
223 | effects->addRepaint(pos.x() - radius, pos.y() - radius, 2 * radius, 2 * radius); | 223 | effects->addRepaint(pos.x() - radius, pos.y() - radius, 2 * radius, 2 * radius); | ||
224 | effects->addRepaint(old.x() - radius, old.y() - radius, 2 * radius, 2 * radius); | 224 | effects->addRepaint(old.x() - radius, old.y() - radius, 2 * radius, 2 * radius); | ||
225 | } | 225 | } | ||
226 | } | 226 | } | ||
227 | 227 | | |||
228 | void LookingGlassEffect::paintScreen(int mask, QRegion region, ScreenPaintData &data) | 228 | void LookingGlassEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData &data) | ||
229 | { | 229 | { | ||
230 | // Call the next effect. | 230 | // Call the next effect. | ||
231 | effects->paintScreen(mask, region, data); | 231 | effects->paintScreen(mask, region, data); | ||
232 | if (m_valid && m_enabled) { | 232 | if (m_valid && m_enabled) { | ||
233 | // Disable render texture | 233 | // Disable render texture | ||
234 | GLRenderTarget* target = GLRenderTarget::popRenderTarget(); | 234 | GLRenderTarget* target = GLRenderTarget::popRenderTarget(); | ||
235 | Q_ASSERT(target == m_fbo); | 235 | Q_ASSERT(target == m_fbo); | ||
236 | Q_UNUSED(target); | 236 | Q_UNUSED(target); | ||
Show All 21 Lines |