Mercurial > audlegacy
diff src/audacious/ui_skin.c @ 4541:d8920be7275a
set default scale_factor to 2.0, custom scale factor can be manually specified in config file anyway; use GDK_INTERP_NEAREST and GDK_RGB_DITHER_NONE when drawing scaled widgets
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Mon, 12 May 2008 00:13:38 +0200 |
parents | 246244ead30e |
children | d09dd0960a6a |
line wrap: on
line diff
--- a/src/audacious/ui_skin.c Mon May 12 00:14:27 2008 +0300 +++ b/src/audacious/ui_skin.c Mon May 12 00:13:38 2008 +0200 @@ -2075,8 +2075,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_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); + 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); g_object_unref(image); } else { gdk_draw_pixbuf(widget->window, NULL, obj, 0, 0, 0, 0, width, height, GDK_RGB_DITHER_NONE, 0, 0);