diff options
| author | Manolo Gouy <Manolo> | 2010-04-18 07:53:20 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-04-18 07:53:20 +0000 |
| commit | 1cd104557200738017190ed273ac3cf83ced1a30 (patch) | |
| tree | 3110c0124b2eacd804e1f2cca3bcbc56b65bccad | |
| parent | d0b1cc30f7eac228caddadb2bc675865a4124b1b (diff) | |
Fixed Quartz printing of custom dashed-lines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/fl_line_style.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fl_line_style.cxx b/src/fl_line_style.cxx index e93f159ec..b2bf1fc12 100644 --- a/src/fl_line_style.cxx +++ b/src/fl_line_style.cxx @@ -117,7 +117,9 @@ void Fl_Device::line_style(int style, int width, char* dashes) { fl_quartz_line_width_ = (float)width; fl_quartz_line_cap_ = Cap[(style>>8)&3]; // when printing kCGLineCapSquare seems better for solid lines - if (Fl_Device::current()->type() == quartz_printer && style == FL_SOLID) fl_quartz_line_cap_ = kCGLineCapSquare; + if (Fl_Device::current()->type() == quartz_printer && style == FL_SOLID && dashes == NULL) { + fl_quartz_line_cap_ = kCGLineCapSquare; + } fl_quartz_line_join_ = Join[(style>>12)&3]; char *d = dashes; static CGFloat pattern[16]; |
