Re: [PATCHv2 3/4] gtk: remove unneeded check

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

 



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@xxxxxxxxx>
Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>
> ---
>  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);
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]