summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2018-07-01 19:23:08 -0500
committerFederico Mena Quintero <federico@gnome.org>2018-07-01 19:29:30 -0500
commitc3ea9eff2e7865bb0bf45ccd71a4e50ff78ae221 (patch)
treef74399f46e0dc88f68275687394adaa132e22a6f
parent818b71703fd07782221ea50fadb6ac86ec12001d (diff)
downloadgdk-pixbuf-c3ea9eff2e7865bb0bf45ccd71a4e50ff78ae221.tar.gz
Coding style fixups
-rw-r--r--gdk-pixbuf/gdk-pixbuf.c14
-rw-r--r--gdk-pixbuf/gdk-pixdata.c12
2 files changed, 13 insertions, 13 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c
index 9afef4334..1c7fbee64 100644
--- a/gdk-pixbuf/gdk-pixbuf.c
+++ b/gdk-pixbuf/gdk-pixbuf.c
@@ -299,7 +299,7 @@ gdk_pixbuf_finalize (GObject *object)
break;
default:
- g_assert_not_reached();
+ g_assert_not_reached ();
}
G_OBJECT_CLASS (gdk_pixbuf_parent_class)->finalize (object);
@@ -724,7 +724,7 @@ downgrade_to_pixels (const GdkPixbuf *pixbuf)
return;
case STORAGE_BYTES: {
- GdkPixbuf *mut_pixbuf = (GdkPixbuf*)pixbuf;
+ GdkPixbuf *mut_pixbuf = (GdkPixbuf *) pixbuf;
gsize len;
Pixels pixels;
@@ -738,7 +738,7 @@ downgrade_to_pixels (const GdkPixbuf *pixbuf)
}
default:
- g_assert_not_reached();
+ g_assert_not_reached ();
}
}
@@ -830,7 +830,7 @@ gdk_pixbuf_read_pixel_bytes (const GdkPixbuf *pixbuf)
return g_bytes_ref (pixbuf->s.bytes.bytes);
default:
- g_assert_not_reached();
+ g_assert_not_reached ();
}
}
@@ -1272,7 +1272,7 @@ gdk_pixbuf_set_property (GObject *object,
* passed value is not NULL before actually setting pixbuf->storage.
*/
case PROP_PIXELS:
- g_assert(pixbuf->s.pixels.pixels == NULL);
+ g_assert (pixbuf->s.pixels.pixels == NULL);
notify = pixbuf->s.pixels.pixels != (guchar *) g_value_get_pointer (value);
pixbuf->s.pixels.pixels = (guchar *) g_value_get_pointer (value);
pixbuf->s.pixels.destroy_fn = NULL;
@@ -1283,7 +1283,7 @@ gdk_pixbuf_set_property (GObject *object,
}
break;
case PROP_PIXEL_BYTES:
- g_assert(pixbuf->s.bytes.bytes == NULL);
+ g_assert (pixbuf->s.bytes.bytes == NULL);
notify = pixbuf->s.bytes.bytes != g_value_get_boxed (value);
pixbuf->s.bytes.bytes = g_value_dup_boxed (value);
@@ -1335,7 +1335,7 @@ gdk_pixbuf_get_property (GObject *object,
g_value_set_pointer (value, gdk_pixbuf_get_pixels (pixbuf));
break;
case PROP_PIXEL_BYTES:
- g_value_set_boxed (value, gdk_pixbuf_read_pixel_bytes(pixbuf));
+ g_value_set_boxed (value, gdk_pixbuf_read_pixel_bytes (pixbuf));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
diff --git a/gdk-pixbuf/gdk-pixdata.c b/gdk-pixbuf/gdk-pixdata.c
index 38d5547e9..df1036a9a 100644
--- a/gdk-pixbuf/gdk-pixdata.c
+++ b/gdk-pixbuf/gdk-pixdata.c
@@ -260,11 +260,11 @@ diff2_rgba (const guint8 *ip)
return ip[0] != ip[4] || ip[1] != ip[5] || ip[2] != ip[6] || ip[3] != ip[7];
}
-static guint8* /* dest buffer bound */
-rl_encode_rgbx (guint8 *bp, /* dest buffer */
- const guint8 *ip, /* image pointer */
- const guint8 *limit, /* image upper bound */
- guint n_ch)
+static guint8 * /* dest buffer bound */
+rl_encode_rgbx (guint8 *bp, /* dest buffer */
+ const guint8 *ip, /* image pointer */
+ const guint8 *limit, /* image upper bound */
+ guint n_ch)
{
gboolean (*diff2_pix) (const guint8 *) = n_ch > 3 ? diff2_rgba : diff2_rgb;
const guint8 *ilimit = limit - n_ch;
@@ -380,7 +380,7 @@ gdk_pixdata_from_pixbuf (GdkPixdata *pixdata,
else
buf = (GdkPixbuf *)pixbuf;
- pixels = gdk_pixbuf_read_pixels(buf);
+ pixels = gdk_pixbuf_read_pixels (buf);
pad = rowstride;
pad = MAX (pad, 130 + n_bytes / 127);
data = g_new (guint8, pad + n_bytes);