]> granicus.if.org Git - graphviz/commitdiff
GDK plugin writer: abbreviate
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 19:50:03 +0000 (12:50 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Apr 2022 01:03:37 +0000 (18:03 -0700)
plugin/gdk/gvdevice_gdk.c

index 209002d497924fa77e2e10e24e6b7df9d30bf37a..001bf14ddc72400950daba9a49c6ad8c275dc8fb 100644 (file)
@@ -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)