Author: rjek
Date: Fri Feb 2 11:45:54 2007
New Revision: 3162
URL:
http://svn.semichrome.net?rev=3162&view=rev
Log:
Fix off-by-one in nsgtk image plotter that resulted in all images being subject to a
bilinear resample.
Modified:
trunk/netsurf/gtk/gtk_plotters.c
Modified: trunk/netsurf/gtk/gtk_plotters.c
URL:
http://svn.semichrome.net/trunk/netsurf/gtk/gtk_plotters.c?rev=3162&r...
==============================================================================
--- trunk/netsurf/gtk/gtk_plotters.c (original)
+++ trunk/netsurf/gtk/gtk_plotters.c Fri Feb 2 11:45:54 2007
@@ -277,7 +277,7 @@
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,