| 550 | } |
| 551 | |
| 552 | void wxPolygonShape::ResetControlPoints() |
| 553 | { |
| 554 | wxObjectList::compatibility_iterator node = m_points->GetFirst(); |
| 555 | wxObjectList::compatibility_iterator controlPointNode = m_controlPoints.GetFirst(); |
| 556 | while (node && controlPointNode) |
| 557 | { |
| 558 | wxRealPoint *point = (wxRealPoint *)node->GetData(); |
| 559 | wxPolygonControlPoint *controlPoint = (wxPolygonControlPoint *)controlPointNode->GetData(); |
| 560 | |
| 561 | controlPoint->m_xoffset = point->x; |
| 562 | controlPoint->m_yoffset = point->y; |
| 563 | controlPoint->m_polygonVertex = point; |
| 564 | |
| 565 | node = node->GetNext(); |
| 566 | controlPointNode = controlPointNode->GetNext(); |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | |
| 571 | #if wxUSE_PROLOGIO |