Displaying 1 result from an estimated 1 matches for "zoomoutput".
2006 Nov 07
1
Patch for zoom with mixed resolutions
...- 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->width / 2) /
+ (s->width * 2.0f);
+ zs->yTranslate = ((y - o->region.extents.y1) - o->height / 2) /
+ (s->height * 2.0f);
zs->xTranslate /= zs->newZoom;
zs->yTranslate /= zs->...