summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-03-27 19:18:52 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-03-27 19:18:52 +0000
commit86ea073c40a35689530064f4f23476c8f3cfdba4 (patch)
treec7d0119acf8ccf8b5c5e172a4116ef3a6b2a651d /gtk
parentb82801129c7a4714060530d7893c99136ab0b9ad (diff)
downloadnetsurf-86ea073c40a35689530064f4f23476c8f3cfdba4.tar.gz
netsurf-86ea073c40a35689530064f4f23476c8f3cfdba4.tar.bz2
Improve line plotter.
svn path=/trunk/netsurf/; revision=6949
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk_plotters.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c
index e73d4519c..935b07992 100644
--- a/gtk/gtk_plotters.c
+++ b/gtk/gtk_plotters.c
@@ -141,8 +141,8 @@ bool nsgtk_plot_line(int x0, int y0, int x1, int y1, int width,
width = 1;
cairo_set_line_width(current_cr, width);
- cairo_move_to(current_cr, x0, y0 - 0.5);
- cairo_line_to(current_cr, x1, y1 - 0.5);
+ cairo_move_to(current_cr, x0 + 0.5, y0 + 0.5);
+ cairo_line_to(current_cr, x1 + 0.5, y1 + 0.5);
cairo_stroke(current_cr);
return true;