X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2997ca30d66c2dc778ed9a84c8c94fea6ec1c958..55866801f0927556c6a63ca91560a69fda21b965:/src/generic/renderg.cpp diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index e6f8b156be..2a6c00da5f 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -353,15 +353,15 @@ wxRendererGeneric::DrawComboBoxDropButton(wxWindow *win, dc.SetPen(wxPen(win->GetBackgroundColour())); dc.DrawRectangle(rect); - wxPoint pt[3] = + wxPoint pt[] = { - wxPoint(), + wxPoint(0,0), wxPoint(rect.width, 0), wxPoint(rect.width/2, rect.height - 2) }; 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); }