supporting native background on nonownedwindow, see #13032
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -716,8 +716,12 @@ bool wxNonOwnedWindowCocoaImpl::SetTransparent(wxByte alpha)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxNonOwnedWindowCocoaImpl::SetBackgroundColour(const wxColour& WXUNUSED(col) )
|
bool wxNonOwnedWindowCocoaImpl::SetBackgroundColour(const wxColour& col )
|
||||||
{
|
{
|
||||||
|
[m_macWindow setBackgroundColor:[NSColor colorWithCalibratedRed:(CGFloat) (col.Red() / 255.0)
|
||||||
|
green:(CGFloat) (col.Green() / 255.0)
|
||||||
|
blue:(CGFloat) (col.Blue() / 255.0)
|
||||||
|
alpha:(CGFloat) (col.Alpha() / 255.0)]];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user