X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f33cef9fec16abad12ef95f293776d3926960ad3..9cc62fc819e1b2b01af9732a3ad218aeec13e4d4:/src/generic/renderg.cpp diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index 7675c9de83..1a81c8626f 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -351,17 +351,17 @@ wxRendererGeneric::DrawComboBoxDropButton(wxWindow *win, { dc.SetBrush(wxBrush(win->GetBackgroundColour())); dc.SetPen(wxPen(win->GetBackgroundColour())); - dc.DrawRectangle(0, 0, rect.width, rect.height); + dc.DrawRectangle(rect); wxPoint pt[] = { - wxPoint(0, 0), + wxPoint(), wxPoint(rect.width, 0), wxPoint(rect.width/2, rect.height - 2) }; dc.SetBrush(wxBrush(win->GetForegroundColour())); dc.SetPen(wxPen(win->GetForegroundColour())); - dc.DrawPolygon(WXSIZEOF(pt), pt); + dc.DrawPolygon(WXSIZEOF(pt), pt, rect.x, rect.y); }