diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2006-03-19 21:44:22 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2006-03-19 21:44:22 +0000 |
commit | 5c7b5d81adbd59dbb05a496cc149baa2f5dfd4b9 (patch) | |
tree | 967339a1545642605c50f89b65a66735b2379ee0 /gtk/gtk_plotters.c | |
parent | f7a178d62f53e82f24ced20b3f2a85fc5e2a25e3 (diff) | |
download | netsurf-5c7b5d81adbd59dbb05a496cc149baa2f5dfd4b9.tar.gz netsurf-5c7b5d81adbd59dbb05a496cc149baa2f5dfd4b9.tar.bz2 |
[project @ 2006-03-19 21:44:22 by rjek]
Some Cairo line thickness related fixes
svn path=/import/netsurf/; revision=2139
Diffstat (limited to 'gtk/gtk_plotters.c')
-rw-r--r-- | gtk/gtk_plotters.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c index b02146ace..0be4b4ed2 100644 --- a/gtk/gtk_plotters.c +++ b/gtk/gtk_plotters.c @@ -19,7 +19,6 @@ #include "netsurf/render/font.h" #include "netsurf/utils/log.h" - static bool nsgtk_plot_clg(colour c); static bool nsgtk_plot_rectangle(int x0, int y0, int width, int height, int line_width, colour c, bool dotted, bool dashed); @@ -88,6 +87,8 @@ bool nsgtk_plot_line(int x0, int y0, int x1, int y1, int width, { nsgtk_set_colour(c); #ifdef CAIRO_VERSION + if (width == 0) + width = 1; cairo_set_line_width(current_cr, width); cairo_move_to(current_cr, x0, y0); cairo_line_to(current_cr, x1, y1); @@ -105,6 +106,7 @@ bool nsgtk_plot_polygon(int *p, unsigned int n, colour fill) unsigned int i; #ifdef CAIRO_VERSION nsgtk_set_colour(fill); + cairo_set_line_width(current_cr, 0); cairo_move_to(current_cr, p[0], p[1]); for (i = 1; i != n; i++) { cairo_line_to(current_cr, p[i * 2], p[i * 2 + 1]); |