comparison audacious/util.c @ 1887:94795106c541 trunk

[svn] - icc warning fixes (pass 1)
author nenolod
date Fri, 20 Oct 2006 16:58:06 -0700
parents 01103f911aa5
children 90d95cd7edb5
comparison
equal deleted inserted replaced
1886:cbc1df98c5b6 1887:94795106c541
1549 GdkPixmap *audacious_pixmap_resize(GdkWindow *src, GdkGC *src_gc, GdkPixmap *in, gint width, gint height) 1549 GdkPixmap *audacious_pixmap_resize(GdkWindow *src, GdkGC *src_gc, GdkPixmap *in, gint width, gint height)
1550 { 1550 {
1551 GdkPixmap *out; 1551 GdkPixmap *out;
1552 gint owidth, oheight; 1552 gint owidth, oheight;
1553 1553
1554 g_return_if_fail(src != NULL); 1554 g_return_val_if_fail(src != NULL, NULL);
1555 g_return_if_fail(src_gc != NULL); 1555 g_return_val_if_fail(src_gc != NULL, NULL);
1556 g_return_if_fail(in != NULL); 1556 g_return_val_if_fail(in != NULL, NULL);
1557 g_return_if_fail(width > 0 && height > 0); 1557 g_return_val_if_fail(width > 0 && height > 0, NULL);
1558 1558
1559 gdk_drawable_get_size(in, &owidth, &oheight); 1559 gdk_drawable_get_size(in, &owidth, &oheight);
1560 1560
1561 if (oheight == height && owidth == width) 1561 if (oheight == height && owidth == width)
1562 return; 1562 return NULL;
1563 1563
1564 out = gdk_pixmap_new(src, width, height, -1); 1564 out = gdk_pixmap_new(src, width, height, -1);
1565 1565
1566 gdk_draw_rectangle(out, src_gc, TRUE, 0, 0, width, height); 1566 gdk_draw_rectangle(out, src_gc, TRUE, 0, 0, width, height);
1567 1567