painting background of splitter as well, fixes #11958
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
549d99f043
commit
d67e4ac4c2
@ -284,14 +284,27 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
||||
{
|
||||
wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width,
|
||||
(int) splitterRect.size.height );
|
||||
win->Refresh( &rect );
|
||||
}
|
||||
win->RefreshRect( rect );
|
||||
}
|
||||
else
|
||||
{
|
||||
CGContextRef cgContext;
|
||||
wxGCDCImpl *impl = (wxGCDCImpl*) dc.GetImpl();
|
||||
cgContext = (CGContextRef) impl->GetGraphicsContext()->GetNativeContext();
|
||||
|
||||
HIThemeBackgroundDrawInfo bgdrawInfo;
|
||||
bgdrawInfo.version = 0;
|
||||
bgdrawInfo.state = kThemeStateActive;
|
||||
bgdrawInfo.kind = hasMetal ? kThemeBackgroundMetal : kThemeBackgroundPlacard;
|
||||
|
||||
if ( hasMetal )
|
||||
HIThemeDrawBackground(&splitterRect, &bgdrawInfo, cgContext, kHIThemeOrientationNormal);
|
||||
else
|
||||
{
|
||||
CGContextSetFillColorWithColor(cgContext,win->GetBackgroundColour().GetCGColor());
|
||||
CGContextFillRect(cgContext,splitterRect);
|
||||
}
|
||||
|
||||
HIThemeSplitterDrawInfo drawInfo;
|
||||
drawInfo.version = 0;
|
||||
drawInfo.state = kThemeStateActive;
|
||||
|
Loading…
Reference in New Issue
Block a user