GdkPixbuf *pixbuf_trim(GdkPixbuf * pixbuf)
{
vprintf("%s()\n", __PRETTY_FUNCTION__);
- GdkPixbuf *mpixbuf =
- gdk_pixbuf_new(GDK_COLORSPACE_RGB, gdk_pixbuf_get_has_alpha(pixbuf),
+ GdkPixbuf *mpixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, gdk_pixbuf_get_has_alpha(pixbuf),
8, TILE_SIZE_PIXELS, TILE_SIZE_PIXELS);
gdk_pixbuf_copy_area(pixbuf,
- (gdk_pixbuf_get_width(pixbuf) -
- TILE_SIZE_PIXELS) / 2,
- (gdk_pixbuf_get_height(pixbuf) -
- TILE_SIZE_PIXELS) / 2, TILE_SIZE_PIXELS,
+ (gdk_pixbuf_get_width(pixbuf) - TILE_SIZE_PIXELS) / 2,
+ (gdk_pixbuf_get_height(pixbuf) - TILE_SIZE_PIXELS) / 2,
+ TILE_SIZE_PIXELS,
TILE_SIZE_PIXELS, mpixbuf, 0, 0);
g_object_unref(pixbuf);