|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 3/9] ui: add basic GTK gui (v4) |
Date: | Tue, 19 Feb 2013 10:28:30 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
Il 19/02/2013 10:07, Gerd Hoffmann ha scritto: >> > + if (s->surface) { >> > + cairo_surface_destroy(s->surface); >> > + } > Isn't cairo backed by pixman under the hood? Yes, but there is no API to construct a cairo surface from a pixman image. Paolo > I suspect you should be able to simply pass the pixman image > (ds->surface->image) directly to cairo for rendering, thereby making > this function alot simpler.
[Prev in Thread] | Current Thread | [Next in Thread] |