mirror of https://github.com/fltk/fltk
Fixed Quartz printing of custom dashed-lines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
d0b1cc30f7
commit
1cd1045572
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue