renamed start parameter of wxDC::DrawPolyPolygon() to count (patch 882189)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-02-29 23:34:01 +00:00
parent 163dc80eff
commit 793db75554
6 changed files with 20 additions and 20 deletions

View File

@@ -108,14 +108,14 @@ void wxDCBase::DrawPolygon(const wxList *list,
void
wxDCBase::DoDrawPolyPolygon(int n,
int start[],
int count[],
wxPoint points[],
wxCoord xoffset, wxCoord yoffset,
int fillStyle)
{
if ( n == 1 )
{
DoDrawPolygon(start[0], points, xoffset, yoffset, fillStyle);
DoDrawPolygon(count[0], points, xoffset, yoffset, fillStyle);
return;
}
@@ -126,14 +126,14 @@ wxDCBase::DoDrawPolyPolygon(int n,
for (i = j = lastOfs = 0; i < n; i++)
{
lastOfs = j;
j += start[i];
j += count[i];
}
pts = new wxPoint[j+n-1];
for (i = 0; i < j; i++)
pts[i] = points[i];
for (i = 2; i <= n; i++)
{
lastOfs -= start[n-i];
lastOfs -= count[n-i];
pts[j++] = pts[lastOfs];
}
@@ -143,8 +143,8 @@ wxDCBase::DoDrawPolyPolygon(int n,
SetPen(pen);
for (i = j = 0; i < n; i++)
{
DoDrawLines(start[i], pts+j, xoffset, yoffset);
j += start[i];
DoDrawLines(count[i], pts+j, xoffset, yoffset);
j += count[i];
}
delete pts;
}