Fix updating wxAUI frame buttons on mouse hover
This didn't work under wxOSX or wxGTK/Wayland as it used wxClientDC which doesn't work in these ports. Fix this in the usual way, i.e. by just redrawing everything in them.
This commit is contained in:
parent
3e32e0fa67
commit
15af320353
1 changed files with 8 additions and 1 deletions
|
|
@ -4084,7 +4084,14 @@ void wxAuiManager::UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part,
|
|||
state = wxAUI_BUTTON_STATE_HOVER;
|
||||
}
|
||||
|
||||
// now repaint the button with hover state
|
||||
// now repaint the button with hover state -- or everything if we can't
|
||||
// repaint just it
|
||||
if ( !wxClientDC::CanBeUsedForDrawing(m_frame) )
|
||||
{
|
||||
m_frame->Refresh();
|
||||
m_frame->Update();
|
||||
}
|
||||
|
||||
wxClientDC cdc(m_frame);
|
||||
|
||||
// if the frame has a toolbar, the client area
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue