diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_plotters.c | 4 |
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; |