Simplify platform test when creating hint window
Instead of checking for all the other platforms, just check for non-Mac
as the code in this branch should work (and definitely should compile)
in any port and it's just wxOSX which requires special handling here.
This fixes the build under the other platforms (e.g. wxX11) broken by
the changes of e8a6f3b732 (Use wxSYS_COLOUR_HOTLIGHT for hint background
under Mac too, 2023-12-24).
This commit is contained in:
parent
219f8908b5
commit
e4bce8f891
1 changed files with 2 additions and 2 deletions
|
|
@ -844,7 +844,7 @@ void wxAuiManager::UpdateHintWindowConfig()
|
|||
if ((m_flags & wxAUI_MGR_TRANSPARENT_HINT) && can_do_transparent)
|
||||
{
|
||||
// Make a window to use for a transparent hint
|
||||
#if defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXQT__)
|
||||
#ifndef __WXMAC__
|
||||
m_hintWnd = new wxFrame(m_frame, wxID_ANY, wxEmptyString,
|
||||
wxDefaultPosition, wxSize(1,1),
|
||||
wxFRAME_TOOL_WINDOW |
|
||||
|
|
@ -854,7 +854,7 @@ void wxAuiManager::UpdateHintWindowConfig()
|
|||
|
||||
// We can set the background of the frame itself directly.
|
||||
auto bgWnd = m_hintWnd;
|
||||
#elif defined(__WXMAC__)
|
||||
#else // Mac
|
||||
// Using a miniframe with float and tool styles keeps the parent
|
||||
// frame activated and highlighted as such...
|
||||
m_hintWnd = new wxMiniFrame(m_frame, wxID_ANY, wxEmptyString,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue