From: Matthew Fernandez Date: Sun, 3 Apr 2022 19:50:03 +0000 (-0700) Subject: GDK plugin writer: abbreviate X-Git-Tag: 4.0.0~126^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26e9b151a63de5ae508454c4f10e83dc4ac0a7a3;p=graphviz GDK plugin writer: abbreviate --- diff --git a/plugin/gdk/gvdevice_gdk.c b/plugin/gdk/gvdevice_gdk.c index 209002d49..001bf14dd 100644 --- a/plugin/gdk/gvdevice_gdk.c +++ b/plugin/gdk/gvdevice_gdk.c @@ -56,9 +56,7 @@ argb2rgba ( unsigned int width, unsigned int height, char *data) static gboolean writer ( const gchar *buf, gsize count, GError **error, gpointer data) { - if (count == gvwrite((GVJ_t *)data, buf, count)) - return TRUE; - return FALSE; + return count == gvwrite((GVJ_t *)data, buf, count); } static void gdk_format(GVJ_t * job)