Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
4540:956272f5935d | 4541:d8920be7275a |
---|---|
2073 void ui_skinned_widget_draw(GtkWidget *widget, GdkPixbuf *obj, gint width, gint height, gboolean scale) { | 2073 void ui_skinned_widget_draw(GtkWidget *widget, GdkPixbuf *obj, gint width, gint height, gboolean scale) { |
2074 g_return_if_fail(widget != NULL); | 2074 g_return_if_fail(widget != NULL); |
2075 g_return_if_fail(obj != NULL); | 2075 g_return_if_fail(obj != NULL); |
2076 | 2076 |
2077 if (scale) { | 2077 if (scale) { |
2078 GdkPixbuf *image = gdk_pixbuf_scale_simple(obj, width * cfg.scale_factor, height* cfg.scale_factor, GDK_INTERP_BILINEAR); | 2078 GdkPixbuf *image = gdk_pixbuf_scale_simple(obj, width * cfg.scale_factor, height* cfg.scale_factor, GDK_INTERP_NEAREST); |
2079 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); | 2079 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); |
2080 g_object_unref(image); | 2080 g_object_unref(image); |
2081 } else { | 2081 } else { |
2082 gdk_draw_pixbuf(widget->window, NULL, obj, 0, 0, 0, 0, width, height, GDK_RGB_DITHER_NONE, 0, 0); | 2082 gdk_draw_pixbuf(widget->window, NULL, obj, 0, 0, 0, 0, width, height, GDK_RGB_DITHER_NONE, 0, 0); |
2083 } | 2083 } |
2084 } | 2084 } |