summaryrefslogtreecommitdiff
path: root/xine_sxfe_frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'xine_sxfe_frontend.c')
-rw-r--r--xine_sxfe_frontend.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index 7876c14c..4da42a7b 100644
--- a/xine_sxfe_frontend.c
+++ b/xine_sxfe_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_sxfe_frontend.c,v 1.87 2008-10-26 12:15:28 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.88 2008-10-26 12:22:33 phintuka Exp $
*
*/
@@ -549,10 +549,10 @@ static void xrender_surf_blend(Display *dpy, Xrender_Surf *src, Xrender_Surf *ds
xf.matrix[2][0] = 0; xf.matrix[2][1] = 0; xf.matrix[2][2] = XDoubleToFixed(1.0);
XRenderSetPictureFilter(dpy, src->pic, smooth ? "bilinear" : "nearest", NULL, 0);
XRenderSetPictureTransform(dpy, src->pic, &xf);
- x = (int)ceil((double)x * scale_x);
- y = (int)ceil((double)y * scale_y);
- w = (int)floor((double)w * scale_x);
- h = (int)floor((double)h * scale_y);
+ x = (int)ceil((double)(x>0?x-1:0) * scale_x);
+ y = (int)ceil((double)(y>0?y-1:0) * scale_y);
+ w = (int)floor((double)(w+2) * scale_x);
+ h = (int)floor((double)(h+2) * scale_y);
XRenderComposite(dpy, PictOpSrc, src->pic, None, dst->pic, x, y, 0, 0, x, y, w, h);
}