Changeset View
Changeset View
Standalone View
Standalone View
effects/mouseclick/mouseclick.cpp
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 102 | while (m_clicks.size() > 0) { | |||
---|---|---|---|---|---|
106 | } | 106 | } | ||
107 | m_clicks.pop_front(); | 107 | m_clicks.pop_front(); | ||
108 | delete first; | 108 | delete first; | ||
109 | } | 109 | } | ||
110 | 110 | | |||
111 | effects->prePaintScreen(data, time); | 111 | effects->prePaintScreen(data, time); | ||
112 | } | 112 | } | ||
113 | 113 | | |||
114 | void MouseClickEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 114 | void MouseClickEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
115 | { | 115 | { | ||
116 | effects->paintScreen(mask, region, data); | 116 | effects->paintScreen(mask, region, data); | ||
117 | 117 | | |||
118 | paintScreenSetup(mask, region, data); | 118 | paintScreenSetup(mask, region, data); | ||
119 | foreach (const MouseEvent* click, m_clicks) { | 119 | foreach (const MouseEvent* click, m_clicks) { | ||
120 | for (int i = 0; i < m_ringCount; ++i) { | 120 | for (int i = 0; i < m_ringCount; ++i) { | ||
121 | float alpha = computeAlpha(click, i); | 121 | float alpha = computeAlpha(click, i); | ||
122 | float size = computeRadius(click, i); | 122 | float size = computeRadius(click, i); | ||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |