mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
CtrlCore: Cocoa draw fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@12230 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
059b3bcad4
commit
532e8224dd
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue