[cairo] rendering to image, then to X11 display

Jim Gettys jg at laptop.org
Sun Sep 2 07:59:59 PDT 2007


On Sun, 2007-09-02 at 15:23 +0200, Tamas K Papp wrote:
> Hi,
> 
> I am getting tired of debugging my double buffered code for X11: I
> tried following Carl's suggestions and started to use Xtrace, but the
> whole thing is getting arcane and beyond my abilities.  For example,
> lately I found out that trying to stoke a path with more than approx
> 10000 segments will kill the X connection with
> 
> * X connection to :0.0 broken (explicit kill or server shutdown).

This sounds like it could a bug in the XRender library, where it may be
not handling big requests properly...
                               - Jim

> 
> Yes, I could work around it, but I found that I am spending a lot of
> time on debugging X11 or related code with little return.  
> 
> So I guess it is time to try something else.  Experience tells me that
> the image backend is very robust, so I thought of the following: I
> would open an image surface, render my image in memory, then display
> the whole thing on the window when it is exposed.  
> 
> Is this feasible? 
> 
> Given a Cairo image surface, an X11 display and window descriptor,
> what is the preferred way of displaying it on screen?  I will only be
> working with RGB surfaces, BTW.  If this is difficult, examples and
> pointers would be appreciated.
> 
> Thanks,
> 
> Tamas
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-- 
Jim Gettys
One Laptop Per Child




More information about the cairo mailing list