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 True - False Smoothly resize images when zooming in and out. True Resample images when not at natural size