summaryrefslogtreecommitdiff
path: root/gtk/gtk_plotters.c
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2006-07-23 22:44:42 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2006-07-23 22:44:42 +0000
commit000f7502ba5ff036883c6484ca36594fc9ffb469 (patch)
tree613511757ac79944a7c3d3db12604f66f945083b /gtk/gtk_plotters.c
parent18d84f0c108c207f90d64803dd8834cfe6525374 (diff)
downloadnetsurf-000f7502ba5ff036883c6484ca36594fc9ffb469.tar.gz
netsurf-000f7502ba5ff036883c6484ca36594fc9ffb469.tar.bz2
Make image resampling optional in nsgtk
svn path=/trunk/netsurf/; revision=2794
Diffstat (limited to 'gtk/gtk_plotters.c')
-rw-r--r--gtk/gtk_plotters.c3
1 files changed, 2 insertions, 1 deletions
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;