Skip to content

Commit cd836bb

Browse files
Xavier DucrohetAndroid (Google) Code Review
authored andcommitted
Merge "Fix broken drawCircle LayoutLib."
2 parents e988e0c + 5bf2802 commit cd836bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ public void draw(Graphics2D graphics, Paint_Delegate paintDelegate) {
717717
/*package*/ static void native_drawCircle(int nativeCanvas,
718718
float cx, float cy, float radius, int paint) {
719719
native_drawOval(nativeCanvas,
720-
new RectF(cx - radius, cy - radius, radius, radius),
720+
new RectF(cx - radius, cy - radius, cx + radius, cy + radius),
721721
paint);
722722
}
723723

0 commit comments

Comments
 (0)