Skip to content

Commit

Permalink
fix broken rounded rect drawing code
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiggins committed Jan 3, 2011
1 parent bf6a35e commit 875116e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions enthought/graphcanvas/graph_node_component.py
Expand Up @@ -73,18 +73,17 @@ def _draw_border(self, gc, view_bounds, mode):
gc.begin_path()
gc.move_to(x + end_radius, y)
gc.arc_to(x + self.width, y,
x + self.width,
y + end_radius, end_radius)
gc.arc_to(x + self.width,
y + self.height,
x + self.width - end_radius,
y + self.height, end_radius)
x + self.width, y + end_radius,
end_radius)
gc.arc_to(x + self.width, y + self.height,
x + self.width - end_radius, y + self.height,
end_radius)
gc.arc_to(x, y + self.height,
x, y,
x, y + self.height - end_radius,
end_radius)
gc.arc_to(x, y,
x + self.width + end_radius,
y, end_radius)
x + end_radius, y,
end_radius)

gc.linear_gradient(x, y, x, y+100,
numpy.array([starting_color, ending_color]),
Expand Down

0 comments on commit 875116e

Please sign in to comment.