]> git.saurik.com Git - wxWidgets.git/commitdiff
don't hardcode the array size as done by last commit, just what exactly was the point...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Feb 2005 18:33:42 +0000 (18:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Feb 2005 18:33:42 +0000 (18:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/renderg.cpp

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