Changeset View
Changeset View
Standalone View
Standalone View
effects/trackmouse/trackmouse.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 108 | { | |||
---|---|---|---|---|---|
110 | m_angle = ((t.second() % 4) * m_angleBase) + (t.msec() / 1000.0 * m_angleBase); | 110 | m_angle = ((t.second() % 4) * m_angleBase) + (t.msec() / 1000.0 * m_angleBase); | ||
111 | m_lastRect[0].moveCenter(cursorPos()); | 111 | m_lastRect[0].moveCenter(cursorPos()); | ||
112 | m_lastRect[1].moveCenter(cursorPos()); | 112 | m_lastRect[1].moveCenter(cursorPos()); | ||
113 | data.paint |= m_lastRect[0].adjusted(-1,-1,1,1); | 113 | data.paint |= m_lastRect[0].adjusted(-1,-1,1,1); | ||
114 | 114 | | |||
115 | effects->prePaintScreen(data, time); | 115 | effects->prePaintScreen(data, time); | ||
116 | } | 116 | } | ||
117 | 117 | | |||
118 | void TrackMouseEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 118 | void TrackMouseEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
119 | { | 119 | { | ||
120 | effects->paintScreen(mask, region, data); // paint normal screen | 120 | effects->paintScreen(mask, region, data); // paint normal screen | ||
121 | 121 | | |||
122 | if ( effects->isOpenGLCompositing() && m_texture[0] && m_texture[1]) { | 122 | if ( effects->isOpenGLCompositing() && m_texture[0] && m_texture[1]) { | ||
123 | ShaderBinder binder(ShaderTrait::MapTexture); | 123 | ShaderBinder binder(ShaderTrait::MapTexture); | ||
124 | GLShader *shader(binder.shader()); | 124 | GLShader *shader(binder.shader()); | ||
125 | if (!shader) { | 125 | if (!shader) { | ||
126 | return; | 126 | return; | ||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |