changeset 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 977877bb212f
children 9b8d6438e00f
files src/audacious/main.c src/audacious/util.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/main.c	Mon Jan 28 01:27:43 2008 +0200
+++ b/src/audacious/main.c	Mon Jan 28 02:47:30 2008 +0200
@@ -166,7 +166,7 @@
     0.0,                        /* equalizer preamp */
     {0.0, 0.0, 0.0, 0.0, 0.0,             /* equalizer bands */
      0.0, 0.0, 0.0, 0.0, 0.0},
-    1.5,                        /* GUI scale factor, set to 1.5 for testing purposes --majeru */
+    1.2,                        /* GUI scale factor, hardcoded for testing purposes --majeru */
     NULL,                       /* skin */
     NULL,                       /* output plugin */
     NULL,                       /* file selector path */
--- 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);