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:
@@ -284,7 +284,7 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
|||||||
{
|
{
|
||||||
wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width,
|
wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width,
|
||||||
(int) splitterRect.size.height );
|
(int) splitterRect.size.height );
|
||||||
win->Refresh( &rect );
|
win->RefreshRect( rect );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -292,6 +292,19 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
|||||||
wxGCDCImpl *impl = (wxGCDCImpl*) dc.GetImpl();
|
wxGCDCImpl *impl = (wxGCDCImpl*) dc.GetImpl();
|
||||||
cgContext = (CGContextRef) impl->GetGraphicsContext()->GetNativeContext();
|
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;
|
HIThemeSplitterDrawInfo drawInfo;
|
||||||
drawInfo.version = 0;
|
drawInfo.version = 0;
|
||||||
drawInfo.state = kThemeStateActive;
|
drawInfo.state = kThemeStateActive;
|
||||||
|
Reference in New Issue
Block a user