diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-03 06:38:25 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-03 06:38:25 +0100 |
| commit | 70e19a9e007f38aee308b0669caf1e219f2ae7b6 (patch) | |
| tree | f1148f04bc8ee0d397e8581b3b0fbfd4d769d661 /src/drivers/Cairo | |
| parent | e5c3caeb6b3824eb933cbb3acc57365d9b2ed6d4 (diff) | |
Fix dotted line drawing under Cairo graphics driver
Diffstat (limited to 'src/drivers/Cairo')
| -rw-r--r-- | src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx index 26eb5bccf..590287e48 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx @@ -332,6 +332,7 @@ void Fl_Cairo_Graphics_Driver::line_style(int style, int width, char* dashes) { } } cairo_set_dash(cairo_, ddashes, l, 0); + cairo_set_antialias(cairo_, l ? CAIRO_ANTIALIAS_NONE : CAIRO_ANTIALIAS_DEFAULT); delete[] ddashes; check_status(); } |
