From 106a79999db43400f3f5f6bb2ea6d150e7732158 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 11 Feb 2005 18:33:42 +0000 Subject: [PATCH] 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 --- src/generic/renderg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index e6f8b156be..1a81c8626f 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -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); } -- 2.45.2