Inline DrawResizeHint() function into its only caller
It seems to be more clear to just draw the sash in DrawSashTracker() itself instead of calling a function which does it.
This commit is contained in:
parent
c1325983cf
commit
7584c04ff8
1 changed files with 5 additions and 12 deletions
|
|
@ -89,16 +89,6 @@ static wxBitmap wxPaneCreateStippleBitmap()
|
|||
return wxBitmap(img);
|
||||
}
|
||||
|
||||
static void DrawResizeHint(wxDC& dc, const wxRect& rect)
|
||||
{
|
||||
wxBitmap stipple = wxPaneCreateStippleBitmap();
|
||||
wxBrush brush(stipple);
|
||||
dc.SetBrush(brush);
|
||||
dc.SetPen(*wxTRANSPARENT_PEN);
|
||||
|
||||
dc.DrawRectangle(rect);
|
||||
}
|
||||
|
||||
bool wxSplitterWindow::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
|
|
@ -640,9 +630,12 @@ void wxSplitterWindow::DrawSashTracker(int x, int y)
|
|||
wxDCOverlay overlaydc( m_overlay, &dc );
|
||||
overlaydc.Clear();
|
||||
|
||||
const wxRect rect{posSash, sizeSash};
|
||||
wxBitmap stipple = wxPaneCreateStippleBitmap();
|
||||
wxBrush brush(stipple);
|
||||
dc.SetBrush(brush);
|
||||
dc.SetPen(*wxTRANSPARENT_PEN);
|
||||
|
||||
DrawResizeHint(dc, rect);
|
||||
dc.DrawRectangle(posSash, sizeSash);
|
||||
}
|
||||
|
||||
int wxSplitterWindow::GetWindowSize() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue