diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2006-07-23 22:44:42 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2006-07-23 22:44:42 +0000 |
commit | 000f7502ba5ff036883c6484ca36594fc9ffb469 (patch) | |
tree | 613511757ac79944a7c3d3db12604f66f945083b /gtk | |
parent | 18d84f0c108c207f90d64803dd8834cfe6525374 (diff) | |
download | netsurf-000f7502ba5ff036883c6484ca36594fc9ffb469.tar.gz netsurf-000f7502ba5ff036883c6484ca36594fc9ffb469.tar.bz2 |
Make image resampling optional in nsgtk
svn path=/trunk/netsurf/; revision=2794
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_options.c | 1 | ||||
-rw-r--r-- | gtk/gtk_plotters.c | 3 | ||||
-rw-r--r-- | gtk/netsurf.glade | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtk_options.c b/gtk/gtk_options.c index 5ee4ee8d8..e187fe3cb 100644 --- a/gtk/gtk_options.c +++ b/gtk/gtk_options.c @@ -143,6 +143,7 @@ void nsgtk_options_save(void) { GET_ENTRY(entryHomePageURL, option_homepage_url); GET_CHECK(checkUseCairo, option_render_cairo); + GET_CHECK(checkResampleImages, option_render_resample); /* TODO: save the other options */ options_write(options_file_location); diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c index 8eda4a83d..773137381 100644 --- a/gtk/gtk_plotters.c +++ b/gtk/gtk_plotters.c @@ -280,7 +280,8 @@ bool nsgtk_plot_bitmap(int x, int y, int width, int height, GdkPixbuf *scaled; scaled = gdk_pixbuf_scale_simple(pixbuf, width, height, - GDK_INTERP_BILINEAR); + option_render_resample ? GDK_INTERP_BILINEAR + : GDK_INTERP_NEAREST); if (!scaled) return false; diff --git a/gtk/netsurf.glade b/gtk/netsurf.glade index 7c0abc64d..02ca19d85 100644 --- a/gtk/netsurf.glade +++ b/gtk/netsurf.glade @@ -1255,7 +1255,6 @@ NTML authentication</property> <child> <widget class="GtkCheckButton" id="checkResampleImages"> <property name="visible">True</property> - <property name="sensitive">False</property> <property name="tooltip" translatable="yes">Smoothly resize images when zooming in and out.</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Resample images when not at natural size</property> |