From e691d73fd285f88d67cb345c312757c9204d2038 Mon Sep 17 00:00:00 2001 From: Stephen Watson Date: Wed, 24 Nov 2004 20:09:22 +0000 Subject: [PATCH] r3723: Pinboard background image scaling was poor on some systems, can now choose method. --- ROX-Filer/Help/Changes | 5 +++++ ROX-Filer/Options.xml | 2 ++ ROX-Filer/src/pinboard.c | 7 ++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ROX-Filer/Help/Changes b/ROX-Filer/Help/Changes index f91b016e..dd2f4e2d 100644 --- a/ROX-Filer/Help/Changes +++ b/ROX-Filer/Help/Changes @@ -2,6 +2,11 @@ A RISC OS-like filer for X by Thomas Leonard +24-Nov-2004 +~~~~~~~~~~~ +Method of scaling pinboard images is now an option, as the default could +produce poor results on some systems (Stephen Watson). + 22-Nov-2004 ~~~~~~~~~~~ Updated it.po and Manual-it.xml (Yuri Bongiorno) diff --git a/ROX-Filer/Options.xml b/ROX-Filer/Options.xml index 94757364..033c4f33 100644 --- a/ROX-Filer/Options.xml +++ b/ROX-Filer/Options.xml @@ -159,6 +159,8 @@ The font used for the text displayed under the icons + + Choose between the fast or slow method of scaling backdrop images. The slow method can give better results. Clicking on an item opens it with this on. Hold down Control to select the item instead. If off, clicking once selects an item; double click to open things. diff --git a/ROX-Filer/src/pinboard.c b/ROX-Filer/src/pinboard.c index 66dec30b..0cc7753b 100644 --- a/ROX-Filer/src/pinboard.c +++ b/ROX-Filer/src/pinboard.c @@ -150,6 +150,7 @@ static Option o_pinboard_shadow_labels; static Option o_blackbox_hack; static Option o_top_margin, o_bottom_margin; +static Option o_pinboard_image_scaling; /* Static prototypes */ static GType pin_icon_get_type(void); @@ -259,6 +260,8 @@ void pinboard_init(void) option_add_int(&o_top_margin, "pinboard_top_margin", 0); option_add_int(&o_bottom_margin, "pinboard_bottom_margin", 0); + option_add_int(&o_pinboard_image_scaling, "pinboard_image_scaling", 0); + option_add_notify(pinboard_check_options); gdk_color_parse(o_pinboard_fg_colour.value, &pin_text_fg_col); @@ -2240,7 +2243,9 @@ static GdkPixmap *load_backdrop(const gchar *path, BackdropStyle style) MIN(screen_width, width * scale), MIN(screen_height, height * scale), x, y, scale, scale, - GDK_INTERP_HYPER, 255); + o_pinboard_image_scaling.int_value? + GDK_INTERP_BILINEAR: GDK_INTERP_HYPER, + 255); g_object_unref(old); } -- 2.11.4.GIT