Skip to content

Commit

Permalink
Merge pull request hdodenhof#7 from CarlLee/master
Browse files Browse the repository at this point in the history
Fixed 1px border is drawn even when border width is set to 0
  • Loading branch information
hdodenhof committed Jun 1, 2014
2 parents c1b3705 + fc36cfc commit d597c09
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ protected void onDraw(Canvas canvas) {
}

canvas.drawCircle(getWidth() / 2, getHeight() / 2, mDrawableRadius, mBitmapPaint);
canvas.drawCircle(getWidth() / 2, getHeight() / 2, mBorderRadius, mBorderPaint);
if(mBorderWidth != 0){
canvas.drawCircle(getWidth() / 2, getHeight() / 2, mBorderRadius, mBorderPaint);
}
}

@Override
Expand Down

0 comments on commit d597c09

Please sign in to comment.