From: Kaj-Michael Lang Date: Tue, 9 Oct 2007 12:30:31 +0000 (+0300) Subject: Misc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe3f994eac1deb01547cea8bacd84d31bb244e2;p=mapper Misc --- diff --git a/src/map.c b/src/map.c index a4f15a5..71f24b6 100644 --- a/src/map.c +++ b/src/map.c @@ -158,8 +158,6 @@ map_pixbuf_scale_inplace(GdkPixbuf * pixbuf, guint ratio_p2, guint src_x, guint guint n_channels = gdk_pixbuf_get_n_channels(pixbuf); guchar *pixels = gdk_pixbuf_get_pixels(pixbuf); - vprintf("%s(%d, %d, %d)\n", __PRETTY_FUNCTION__, ratio_p2, src_x, src_y); - /* Sweep through the entire dest area, copying as necessary, but * DO NOT OVERWRITE THE SOURCE AREA. We'll copy it afterward. */ do { @@ -174,8 +172,7 @@ map_pixbuf_scale_inplace(GdkPixbuf * pixbuf, guint ratio_p2, guint src_x, guint dest_offset_y = (dest_y + y) * rowstride; x = dest_dim - 1; - if ((unsigned)(dest_y + y - src_y) < src_dim - && (unsigned)(dest_x + x - src_x) < src_dim) + if ((unsigned)(dest_y + y - src_y) < src_dim && (unsigned)(dest_x + x - src_x) < src_dim) x -= src_dim; for (; x >= 0; x--) { @@ -201,8 +198,6 @@ map_pixbuf_scale_inplace(GdkPixbuf * pixbuf, guint ratio_p2, guint src_x, guint src_y = src_endx; } while ((dest_dim >>= ratio_p2) > 1); - - vprintf("%s(): return\n", __PRETTY_FUNCTION__); } /**