Changeset View
Changeset View
Standalone View
Standalone View
effects/zoom/zoom.cpp
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Line(s) | 255 | { | |||
---|---|---|---|---|---|
266 | } else { | 266 | } else { | ||
267 | hideCursor(); | 267 | hideCursor(); | ||
268 | data.mask |= PAINT_SCREEN_TRANSFORMED; | 268 | data.mask |= PAINT_SCREEN_TRANSFORMED; | ||
269 | } | 269 | } | ||
270 | 270 | | |||
271 | effects->prePaintScreen(data, time); | 271 | effects->prePaintScreen(data, time); | ||
272 | } | 272 | } | ||
273 | 273 | | |||
274 | void ZoomEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 274 | void ZoomEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
275 | { | 275 | { | ||
276 | if (zoom != 1.0) { | 276 | if (zoom != 1.0) { | ||
277 | data *= QVector2D(zoom, zoom); | 277 | data *= QVector2D(zoom, zoom); | ||
278 | const QSize screenSize = effects->virtualScreenSize(); | 278 | const QSize screenSize = effects->virtualScreenSize(); | ||
279 | 279 | | |||
280 | // mouse-tracking allows navigation of the zoom-area using the mouse. | 280 | // mouse-tracking allows navigation of the zoom-area using the mouse. | ||
281 | switch(mouseTracking) { | 281 | switch(mouseTracking) { | ||
282 | case MouseTrackingProportional: | 282 | case MouseTrackingProportional: | ||
▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines |