search for: currentzoom

Displaying 1 result from an estimated 1 matches for "currentzoom".

Did you mean: currentloop
2006 Nov 07
1
Patch for zoom with mixed resolutions
...ions. I think this patch corrects that. (Oh, and on my previous comment I meant struts and not extents, if that was confusing to anyone. It was to me when I re-read it, heh.) ...MC -------------- next part -------------- --- plugins/zoom.c +++ plugins/zoom.c @@ -480,8 +480,12 @@ if (zs->currentZoom == 1.0f) { - zs->xTranslate = (x - s->width / 2) / (s->width * 2.0f); - zs->yTranslate = (y - s->height / 2) / (s->height * 2.0f); + CompOutput *o = &s->outputDev[zs->zoomOutput]; + + zs->xTranslate = ((x - o->region.extents.x1) - o->wid...