Applied patch [ 1116706 ] wxRendererGeneric::DrawComboBoxDropButton position fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -351,9 +351,9 @@ wxRendererGeneric::DrawComboBoxDropButton(wxWindow *win,
|
|||||||
{
|
{
|
||||||
dc.SetBrush(wxBrush(win->GetBackgroundColour()));
|
dc.SetBrush(wxBrush(win->GetBackgroundColour()));
|
||||||
dc.SetPen(wxPen(win->GetBackgroundColour()));
|
dc.SetPen(wxPen(win->GetBackgroundColour()));
|
||||||
dc.DrawRectangle(0, 0, rect.width, rect.height);
|
dc.DrawRectangle(rect);
|
||||||
|
|
||||||
wxPoint pt[] =
|
wxPoint pt[3] =
|
||||||
{
|
{
|
||||||
wxPoint(0, 0),
|
wxPoint(0, 0),
|
||||||
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(WXSIZEOF(pt), pt);
|
dc.DrawPolygon(3, pt, rect.x, rect.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user