Changeset View
Changeset View
Standalone View
Standalone View
effects/magnifier/magnifier.cpp
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Line(s) | 124 | else { | |||
---|---|---|---|---|---|
133 | } | 133 | } | ||
134 | } | 134 | } | ||
135 | } | 135 | } | ||
136 | effects->prePaintScreen(data, time); | 136 | effects->prePaintScreen(data, time); | ||
137 | if (zoom != 1.0) | 137 | if (zoom != 1.0) | ||
138 | data.paint |= magnifierArea().adjusted(-FRAME_WIDTH, -FRAME_WIDTH, FRAME_WIDTH, FRAME_WIDTH); | 138 | data.paint |= magnifierArea().adjusted(-FRAME_WIDTH, -FRAME_WIDTH, FRAME_WIDTH, FRAME_WIDTH); | ||
139 | } | 139 | } | ||
140 | 140 | | |||
141 | void MagnifierEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 141 | void MagnifierEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
142 | { | 142 | { | ||
143 | effects->paintScreen(mask, region, data); // paint normal screen | 143 | effects->paintScreen(mask, region, data); // paint normal screen | ||
144 | if (zoom != 1.0) { | 144 | if (zoom != 1.0) { | ||
145 | // get the right area from the current rendered screen | 145 | // get the right area from the current rendered screen | ||
146 | const QRect area = magnifierArea(); | 146 | const QRect area = magnifierArea(); | ||
147 | const QPoint cursor = cursorPos(); | 147 | const QPoint cursor = cursorPos(); | ||
148 | 148 | | |||
149 | QRect srcArea(cursor.x() - (double)area.width() / (zoom*2), | 149 | QRect srcArea(cursor.x() - (double)area.width() / (zoom*2), | ||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |