Changeset 209
- Timestamp:
- 08/18/2009 04:22:53 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/simple_pie_plot.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/simple_pie_plot.cpp
r208 r209 38 38 { 39 39 wxGraphicsPath path = dc->CreatePath(); 40 double x1 = x + r * cos(start_angle); 41 double y1 = y + r * sin(start_angle); 42 double x2 = x + r * cos(end_angle); 43 double y2 = y + r * sin(end_angle); 44 40 path.MoveToPoint(x,y); 45 41 path.AddArc(x, y, r, start_angle, end_angle, true); 46 path.CloseSubpath();47 48 path.MoveToPoint(x,y);49 path.AddLineToPoint(x1,y1);50 path.AddLineToPoint(x2,y2);51 path.CloseSubpath();52 53 42 dc->DrawPath(path); 54 43 }
Note: See TracChangeset
for help on using the changeset viewer.
