Mercurial > audlegacy
diff src/audacious/util.c @ 4223:2c9c2b5caaee
changed the hardcoded scale to 1.2 and set some dither and interpolation
parameters that look alot nicer
author | Cristi Magherusan <majeru@atheme.org> |
---|---|
date | Mon, 28 Jan 2008 02:47:30 +0200 |
parents | f1074a07ec09 |
children | 92642f860860 |
line wrap: on
line diff
--- a/src/audacious/util.c Mon Jan 28 01:27:43 2008 +0200 +++ b/src/audacious/util.c Mon Jan 28 02:47:30 2008 +0200 @@ -866,8 +866,8 @@ g_return_if_fail(obj != NULL); if (scale) { - GdkPixbuf *image = gdk_pixbuf_scale_simple(obj, width * cfg.scale_factor, height* cfg.scale_factor, GDK_INTERP_NEAREST); - gdk_draw_pixbuf(widget->window, NULL, image, 0, 0, 0, 0, width * cfg.scale_factor , height * cfg.scale_factor, GDK_RGB_DITHER_NONE, 0, 0); + GdkPixbuf *image = gdk_pixbuf_scale_simple(obj, width * cfg.scale_factor, height* cfg.scale_factor, GDK_INTERP_BILINEAR); + gdk_draw_pixbuf(widget->window, NULL, image, 0, 0, 0, 0, width * cfg.scale_factor , height * cfg.scale_factor, GDK_RGB_DITHER_NORMAL, 0, 0); g_object_unref(image); } else { gdk_draw_pixbuf(widget->window, NULL, obj, 0, 0, 0, 0, width, height, GDK_RGB_DITHER_NONE, 0, 0);