diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2006-11-05 13:16:21 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2006-11-05 13:16:21 +0000 |
commit | 306e09dd9f0546db3d13db082bebbe461ee2058d (patch) | |
tree | c6f3b0507d5fff4737645b4e3398ec4995d90325 /gtk/gtk_plotters.c | |
parent | f4f17f905b1f7d1c12baebca6f4c18362d71d80c (diff) | |
download | netsurf-306e09dd9f0546db3d13db082bebbe461ee2058d.tar.gz netsurf-306e09dd9f0546db3d13db082bebbe461ee2058d.tar.bz2 |
Fudge off-by-one bitmap plotting in nsgtk plotters. Will investigate actual cause later.
svn path=/trunk/netsurf/; revision=3032
Diffstat (limited to 'gtk/gtk_plotters.c')
-rw-r--r-- | gtk/gtk_plotters.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c index 6a1a3a977..b04c394d2 100644 --- a/gtk/gtk_plotters.c +++ b/gtk/gtk_plotters.c @@ -268,6 +268,8 @@ static bool nsgtk_plot_pixbuf(int x, int y, int width, int height, if (width == 0 || height == 0) return true; + width++; /* TODO: investigate why this is required */ + if (gdk_pixbuf_get_width(pixbuf) == width && gdk_pixbuf_get_height(pixbuf) == height) { gdk_draw_pixbuf(current_drawable, current_gc, |