qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 3/9] ui: add basic GTK gui (v4)


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 3/9] ui: add basic GTK gui (v4)
Date: Tue, 19 Feb 2013 10:07:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

  Hi,

On 02/19/13 00:56, Anthony Liguori wrote:
> +static void gd_resize(DisplayState *ds)
> +{
> +    GtkDisplayState *s = ds->opaque;
> +    cairo_format_t kind;
> +    int stride;
> +
> +    DPRINTF("resize(width=%d, height=%d)\n",
> +            ds_get_width(ds), ds_get_height(ds));
> +
> +    if (s->surface) {
> +        cairo_surface_destroy(s->surface);
> +    }

Isn't cairo backed by pixman under the hood?

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.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]