diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2007-02-02 11:45:54 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2007-02-02 11:45:54 +0000 |
commit | 66a69bc889332cdbac2eac5226c967cd5dc8cc25 (patch) | |
tree | 0543dc10b09c0de2f7ae18fbec3b6ba84da734d3 /gtk | |
parent | 0351403a7b627a185845cfb6942a6f39debf0737 (diff) | |
download | netsurf-66a69bc889332cdbac2eac5226c967cd5dc8cc25.tar.gz netsurf-66a69bc889332cdbac2eac5226c967cd5dc8cc25.tar.bz2 |
Fix off-by-one in nsgtk image plotter that resulted in all images being subject to a bilinear resample.
svn path=/trunk/netsurf/; revision=3162
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_plotters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c index b78bcd5e6..97681b451 100644 --- a/gtk/gtk_plotters.c +++ b/gtk/gtk_plotters.c @@ -277,7 +277,7 @@ static bool nsgtk_plot_pixbuf(int x, int y, int width, int height, width++; /* TODO: investigate why this is required */ - if (gdk_pixbuf_get_width(pixbuf) == width && + if (gdk_pixbuf_get_width(pixbuf) == (width - 1) && gdk_pixbuf_get_height(pixbuf) == height) { gdk_draw_pixbuf(current_drawable, current_gc, pixbuf, |