Mercurial > audlegacy
diff audacious/util.c @ 1852:01103f911aa5 trunk
[svn] - avoid unnecessary resizing
author | nenolod |
---|---|
date | Mon, 09 Oct 2006 03:50:11 -0700 |
parents | aceb472cce6c |
children | 94795106c541 |
line wrap: on
line diff
--- a/audacious/util.c Mon Oct 09 03:44:50 2006 -0700 +++ b/audacious/util.c Mon Oct 09 03:50:11 2006 -0700 @@ -1558,6 +1558,9 @@ gdk_drawable_get_size(in, &owidth, &oheight); + if (oheight == height && owidth == width) + return; + out = gdk_pixmap_new(src, width, height, -1); gdk_draw_rectangle(out, src_gc, TRUE, 0, 0, width, height);