From: Kaj-Michael Lang Date: Mon, 2 Jul 2007 12:14:18 +0000 (+0300) Subject: Formating only X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5bf5b78b3ce0397805a14b41ff4a4a36f4d714;p=mapper Formating only --- diff --git a/src/map.c b/src/map.c index 02e59c4..0f96c53 100644 --- a/src/map.c +++ b/src/map.c @@ -354,15 +354,13 @@ map_pixbuf_scale_inplace(GdkPixbuf * pixbuf, guint ratio_p2, 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);