CtrlCore: Cocoa draw fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@12230 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-09-01 13:18:00 +00:00
parent 059b3bcad4
commit 532e8224dd

View file

@ -10,6 +10,8 @@ void SystemDraw::Stroke(int width, Color color, bool fill)
static double dot[] = { 3, 3 }; static double dot[] = { 3, 3 };
static double dashdot[] = { 9, 6, 3, 6 }; static double dashdot[] = { 9, 6, 3, 6 };
static double dashdotdot[] = { 9, 3, 3, 3, 3, 3 }; static double dashdotdot[] = { 9, 3, 3, 3, 3, 3 };
if(IsNull(width))
width = PEN_NULL;
switch(width) { switch(width) {
case PEN_NULL: if(!fill) return; case PEN_NULL: if(!fill) return;
case PEN_DASH: CGContextSetLineDash(cgHandle, 0, dash, __countof(dash)); break; case PEN_DASH: CGContextSetLineDash(cgHandle, 0, dash, __countof(dash)); break;