Mac: OVERLAY FIXES for WX2.8 and Enhancements

This commit is contained in:
Marco Serantoni 2010-12-17 23:57:09 +01:00
parent e5e21a24a2
commit 81b3fdf157
3 changed files with 7 additions and 3 deletions

View File

@ -689,6 +689,10 @@ void GRSetDrawMode( wxDC* DC, int draw_mode )
#endif
else
DC->SetLogicalFunction( wxCOPY );
#ifdef USE_WX_OVERLAY
DC->SetLogicalFunction( wxCOPY );
#endif
}

View File

@ -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

View File

@ -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