Mac: OVERLAY FIXES for WX2.8 and Enhancements
This commit is contained in:
parent
e5e21a24a2
commit
81b3fdf157
|
@ -689,6 +689,10 @@ void GRSetDrawMode( wxDC* DC, int draw_mode )
|
|||
#endif
|
||||
else
|
||||
DC->SetLogicalFunction( wxCOPY );
|
||||
|
||||
#ifdef USE_WX_OVERLAY
|
||||
DC->SetLogicalFunction( wxCOPY );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -363,7 +363,7 @@ void WinEDA_PcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
|
|||
if( DrawPanel->ManageCurseur )
|
||||
{
|
||||
#ifdef USE_WX_OVERLAY
|
||||
wxDCOverlay oDC( DrawPanel->m_overlay, DC );
|
||||
wxDCOverlay oDC( DrawPanel->m_overlay, (wxWindowDC*)DC );
|
||||
oDC.Clear();
|
||||
DrawPanel->ManageCurseur( DrawPanel, DC, FALSE );
|
||||
#else
|
||||
|
|
|
@ -58,7 +58,7 @@ void WinEDA_ModuleEditFrame::RedrawActiveWindow( wxDC* DC, bool EraseBg )
|
|||
if(IsShown())
|
||||
{
|
||||
DrawPanel->m_overlay.Reset();
|
||||
wxDCOverlay overlaydc( DrawPanel->m_overlay, DC );
|
||||
wxDCOverlay overlaydc( DrawPanel->m_overlay, (wxWindowDC*)DC );
|
||||
overlaydc.Clear();
|
||||
}
|
||||
#endif
|
||||
|
@ -97,7 +97,7 @@ void WinEDA_PcbFrame::RedrawActiveWindow( wxDC* DC, bool EraseBg )
|
|||
if(IsShown())
|
||||
{
|
||||
DrawPanel->m_overlay.Reset();
|
||||
wxDCOverlay overlaydc( DrawPanel->m_overlay, DC );
|
||||
wxDCOverlay overlaydc( DrawPanel->m_overlay, (wxWindowDC*)DC );
|
||||
overlaydc.Clear();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue