Skip to content

Commit

Permalink
Merge pull request #1328 from JulianJautz/PAINTROID-699_shape_tool_mi…
Browse files Browse the repository at this point in the history
…ssing_star_tip

PAINTROID-699 Shape Tool: star tips missing in stroke mode
  • Loading branch information
juliajulie95 authored Jan 25, 2024
2 parents 4dbda82 + 901f1bc commit 47744f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private const val DEFAULT_OUTLINE_WIDTH = 25
private const val BUNDLE_BASE_SHAPE = "BASE_SHAPE"
private const val BUNDLE_SHAPE_DRAW_TYPE = "SHAPE_DRAW_TYPE"
private const val BUNDLE_OUTLINE_WIDTH = "OUTLINE_WIDTH"
private const val STROKE_MITER_MULTIPLICATOR: Int = 4

class ShapeTool(
shapeToolOptionsView: ShapeToolOptionsView,
Expand Down Expand Up @@ -168,6 +169,7 @@ class ShapeTool(
paint.strokeWidth = shapeOutlineWidth.toFloat()
paint.strokeCap = Paint.Cap.BUTT
paint.strokeJoin = Paint.Join.MITER
paint.strokeMiter *= STROKE_MITER_MULTIPLICATOR
val antiAlias = shapeOutlineWidth > 1
paint.isAntiAlias = antiAlias
}
Expand Down

0 comments on commit 47744f2

Please sign in to comment.