[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] xrender_x11 engine: identity transform workaround



Tilman Sauerbeck [2006-09-11 19:55]:
> May I remove that chunk or do you want to keep it? Patch attached.

Yeah, well, not quite attached. Now.

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Index: evas_engine_xrender.c
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/xrender_x11/evas_engine_xrender.c,v
retrieving revision 1.16
diff -u -p -r1.16 evas_engine_xrender.c
--- evas_engine_xrender.c	11 Sep 2006 15:24:54 -0000	1.16
+++ evas_engine_xrender.c	11 Sep 2006 17:48:27 -0000
@@ -487,22 +487,10 @@ _xr_render_surface_composite(Xrender_Sur
 void
 _xr_render_surface_copy(Xrender_Surface *srs, Xrender_Surface *drs, int sx, int sy, int x, int y, int w, int h)
 {
-   XTransform xf;
    XRenderPictureAttributes att;
    
    if ((w <= 0) || (h <= 0) || (!srs) || (!drs)) return;
 
-   /* FIXME: why do we need to change the identity matrix ifthe src surface
-    * is 1 bit deep?
-    */
-   if (srs->depth == 1)
-     {
-	init_transform(&xf);
-	xf.matrix[0][0] = xf.matrix[1][1] = xf.matrix[2][2] = 1;
-	XRenderSetPictureTransform(srs->xinf->disp, srs->pic, &xf);
-     }
-
-   
    att.clip_mask = None;
    XRenderChangePicture(srs->xinf->disp, srs->pic, CPClipMask, &att);
    XRenderChangePicture(srs->xinf->disp, drs->pic, CPClipMask, &att);

Attachment: pgpQzc4KX44Rj.pgp
Description: PGP signature