don't hardcode the array size as done by last commit, just what exactly was the point of this change?

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-02-11 18:33:42 +00:00
parent 2e5c710e90
commit 106a79999d

View File

@ -353,7 +353,7 @@ wxRendererGeneric::DrawComboBoxDropButton(wxWindow *win,
dc.SetPen(wxPen(win->GetBackgroundColour())); dc.SetPen(wxPen(win->GetBackgroundColour()));
dc.DrawRectangle(rect); dc.DrawRectangle(rect);
wxPoint pt[3] = wxPoint pt[] =
{ {
wxPoint(), wxPoint(),
wxPoint(rect.width, 0), wxPoint(rect.width, 0),
@ -361,7 +361,7 @@ wxRendererGeneric::DrawComboBoxDropButton(wxWindow *win,
}; };
dc.SetBrush(wxBrush(win->GetForegroundColour())); dc.SetBrush(wxBrush(win->GetForegroundColour()));
dc.SetPen(wxPen(win->GetForegroundColour())); dc.SetPen(wxPen(win->GetForegroundColour()));
dc.DrawPolygon(3, pt, rect.x, rect.y); dc.DrawPolygon(WXSIZEOF(pt), pt, rect.x, rect.y);
} }