Commit bc48b850 authored by marco.'s avatar marco.

MacOSX: Gerbview mouse fixed

parent a51dab73
...@@ -85,8 +85,21 @@ void GERBVIEW_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, int aH ...@@ -85,8 +85,21 @@ void GERBVIEW_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, int aH
if( m_canvas->IsMouseCaptured() ) if( m_canvas->IsMouseCaptured() )
{ {
#ifdef USE_WX_OVERLAY
wxDCOverlay oDC( m_overlay, (wxWindowDC*)aDC );
oDC.Clear();
m_canvas->CallMouseCapture( aDC, aPosition, false );
#else
m_canvas->CallMouseCapture( aDC, aPosition, true ); m_canvas->CallMouseCapture( aDC, aPosition, true );
#endif
} }
#ifdef USE_WX_OVERLAY
else
{
m_overlay.Reset();
}
#endif
} }
if( aHotKey ) if( aHotKey )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment