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:
parent
203ec4242b
commit
776036d671
@ -716,8 +716,12 @@ bool wxNonOwnedWindowCocoaImpl::SetTransparent(wxByte alpha)
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user