Commit bbf22f38 authored by Nico Mack's avatar Nico Mack

Reduced complexity of paint method

parent bbb85f28
......@@ -491,14 +491,14 @@ public class CoxcombRangeSlice extends ValueRangeCorona {
if (borderStroke != null)
localCanvas.setStroke(borderStroke);
if (face != null) {
if (faceColour != null) {
localCanvas.setPaint(faceColour.getColor());
localCanvas.fill(face);
}
if (bezelColour != null) {
localCanvas.setPaint(bezelColour.getColor());
localCanvas.setPaint(bezelColour.getColor());
localCanvas.draw(face);
}
}
......@@ -511,7 +511,7 @@ public class CoxcombRangeSlice extends ValueRangeCorona {
if (strokeColour != null) {
localCanvas.setPaint(strokeColour.getColor());
localCanvas.draw(slice);
}
}
}
if (this.opacity < 1.0f)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment