changeset 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 956272f5935d
children 26209b646930
files src/audacious/audconfig.c src/audacious/ui_skin.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/audconfig.c	Mon May 12 00:14:27 2008 +0300
+++ b/src/audacious/audconfig.c	Mon May 12 00:13:38 2008 +0200
@@ -103,7 +103,7 @@
     .close_dialog_add = TRUE,
     .equalizer_preamp = 0.0,
     .equalizer_bands = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
-    .scale_factor = 1.2, /* GUI scale factor, hardcoded for testing purposes --majeru */
+    .scale_factor = 2.0,
     .skin = NULL,
     .outputplugin = NULL,
     .filesel_path = NULL,
--- 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);