summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtk_options.c1
-rw-r--r--gtk/gtk_plotters.c3
-rw-r--r--gtk/netsurf.glade1
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>