void Painter::DrawLineStroke(int width, Color color) { Begin(); LineCap(LINECAP_ROUND); <<=== Line added switch(width) { case PEN_NULL: Stroke(0, color); End(); return; case PEN_SOLID: Stroke(1, color); break; case PEN_DASH: Dash("18 6"); break; case PEN_DOT: Dash("3 3"); break; case PEN_DASHDOT: Dash("9 6 3 6"); break; case PEN_DASHDOTDOT: Dash("9 3 3 3 3 3"); break; default: Stroke(width, color); End(); return; } Stroke(1, color); End(); }
Report message to a moderator