Changeset View
Changeset View
Standalone View
Standalone View
effects/touchpoints/touchpoints.cpp
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Line(s) | 118 | while (it != m_points.end()) { | |||
---|---|---|---|---|---|
122 | } else { | 122 | } else { | ||
123 | it++; | 123 | it++; | ||
124 | } | 124 | } | ||
125 | } | 125 | } | ||
126 | 126 | | |||
127 | effects->prePaintScreen(data, time); | 127 | effects->prePaintScreen(data, time); | ||
128 | } | 128 | } | ||
129 | 129 | | |||
130 | void TouchPointsEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 130 | void TouchPointsEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
131 | { | 131 | { | ||
132 | effects->paintScreen(mask, region, data); | 132 | effects->paintScreen(mask, region, data); | ||
133 | 133 | | |||
134 | paintScreenSetup(mask, region, data); | 134 | paintScreenSetup(mask, region, data); | ||
135 | for (auto it = m_points.constBegin(), end = m_points.constEnd(); it != end; ++it) { | 135 | for (auto it = m_points.constBegin(), end = m_points.constEnd(); it != end; ++it) { | ||
136 | for (int i = 0; i < m_ringCount; ++i) { | 136 | for (int i = 0; i < m_ringCount; ++i) { | ||
137 | float alpha = computeAlpha(it->time, i); | 137 | float alpha = computeAlpha(it->time, i); | ||
138 | float size = computeRadius(it->time, it->press, i); | 138 | float size = computeRadius(it->time, it->press, i); | ||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |