summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/inputzoom.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-22 00:28:21 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-22 00:28:21 +0000
commitc61785ca4e8cf1467a5ceef8ca9958fb1b374802 (patch)
treeaa794950c17838f79985db5eb32e739cb7d1d829 /beryl-plugins/src/inputzoom.c
parenta12940aa301bfab5e0872a3c3095a93c92af2e15 (diff)
downloadmarex-dev-c61785ca4e8cf1467a5ceef8ca9958fb1b374802.tar.gz
marex-dev-c61785ca4e8cf1467a5ceef8ca9958fb1b374802.tar.bz2
beryl-plugins: inputzoom: fixed clipping on zoomout animation. closes #434
git-svn-id: file:///beryl/trunk@2937 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/inputzoom.c')
-rw-r--r--beryl-plugins/src/inputzoom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/beryl-plugins/src/inputzoom.c b/beryl-plugins/src/inputzoom.c
index ca65eed..edae7b6 100644
--- a/beryl-plugins/src/inputzoom.c
+++ b/beryl-plugins/src/inputzoom.c
@@ -689,6 +689,11 @@ zoomPaintTransformedScreen(CompScreen * s, const ScreenPaintAttrib * sa,
r.extents.y2 =
r.extents.y1 + ceil(s->outputDev[output].height / zs->yscale) + 1;
+ r.extents.x1 = MAX(0,r.extents.x1);
+ r.extents.y1 = MAX(0,r.extents.y1);
+ r.extents.x2 = MIN(s->width,r.extents.x2);
+ r.extents.y2 = MIN(s->height,r.extents.y2);
+
UNWRAP(zs, s, paintTransformedScreen);
(*s->paintTransformedScreen) (s, sa, &r, output, mask);
WRAP(zs, s, paintTransformedScreen, zoomPaintTransformedScreen);