[Spice-devel] [PATCHv2 3/4] gtk: remove unneeded check
Pavel Grunt
pgrunt at redhat.com
Wed May 25 10:35:47 UTC 2016
On Wed, 2016-05-25 at 12:20 +0200, Marc-André Lureau wrote:
> spice_cairo_draw_event() can deal with d->canvas.surface == NULL.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> src/spice-widget.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/spice-widget.c b/src/spice-widget.c
> index a37faad..f13a066 100644
> --- a/src/spice-widget.c
> +++ b/src/spice-widget.c
> @@ -1227,7 +1227,6 @@ static gboolean draw_event(GtkWidget *widget, cairo_t
> *cr, gpointer data)
> if (d->mark == 0 || d->canvas.data == NULL ||
> d->area.width == 0 || d->area.height == 0)
> return false;
> - g_return_val_if_fail(d->canvas.surface != NULL, false);
>
> spice_cairo_draw_event(display, cr);
> update_mouse_pointer(display);
More information about the Spice-devel
mailing list