Commit dd5661e5 authored by marco.'s avatar marco.

MacOSX: now editing Text on PCBNEW works nicelly as expected.

parent b95ab355
...@@ -67,7 +67,9 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC ) ...@@ -67,7 +67,9 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC )
if( TextePcb == NULL ) // Should not occur if( TextePcb == NULL ) // Should not occur
return; return;
#ifndef USE_WX_OVERLAY
TextePcb->Draw( Panel, DC, GR_XOR ); TextePcb->Draw( Panel, DC, GR_XOR );
#endif
if( TextePcb->IsNew() ) // If new: remove it if( TextePcb->IsNew() ) // If new: remove it
{ {
...@@ -78,7 +80,11 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC ) ...@@ -78,7 +80,11 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC )
SwapData( TextePcb, &s_TextCopy ); SwapData( TextePcb, &s_TextCopy );
TextePcb->ClearFlags(); TextePcb->ClearFlags();
#ifndef USE_WX_OVERLAY
TextePcb->Draw( Panel, DC, GR_OR ); TextePcb->Draw( Panel, DC, GR_OR );
#else
Panel->Refresh();
#endif
} }
...@@ -118,6 +124,9 @@ void PCB_EDIT_FRAME::Place_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC ) ...@@ -118,6 +124,9 @@ void PCB_EDIT_FRAME::Place_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
} }
TextePcb->ClearFlags(); TextePcb->ClearFlags();
#ifdef USE_WX_OVERLAY
m_canvas->Refresh();
#endif
} }
...@@ -133,6 +142,10 @@ void PCB_EDIT_FRAME::StartMoveTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC, bool aE ...@@ -133,6 +142,10 @@ void PCB_EDIT_FRAME::StartMoveTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC, bool aE
aTextePcb->SetFlags( IS_MOVED ); aTextePcb->SetFlags( IS_MOVED );
aTextePcb->DisplayInfo( this ); aTextePcb->DisplayInfo( this );
#ifdef USE_WX_OVERLAY
m_canvas->Refresh();
#endif
GetScreen()->SetCrossHairPosition( aTextePcb->GetPosition() ); GetScreen()->SetCrossHairPosition( aTextePcb->GetPosition() );
m_canvas->MoveCursorToCrossHair(); m_canvas->MoveCursorToCrossHair();
...@@ -240,6 +253,9 @@ void PCB_EDIT_FRAME::Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC ) ...@@ -240,6 +253,9 @@ void PCB_EDIT_FRAME::Rotate_Texte_Pcb( TEXTE_PCB* TextePcb, wxDC* DC )
TextePcb->SetFlags( IN_EDIT ); TextePcb->SetFlags( IN_EDIT );
OnModify(); OnModify();
#ifdef USE_WX_OVERLAY
m_canvas->Refresh();
#endif
} }
...@@ -261,4 +277,7 @@ void PCB_EDIT_FRAME::FlipTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC ) ...@@ -261,4 +277,7 @@ void PCB_EDIT_FRAME::FlipTextePcb( TEXTE_PCB* aTextePcb, wxDC* aDC )
aTextePcb->SetFlags( IN_EDIT ); aTextePcb->SetFlags( IN_EDIT );
OnModify(); OnModify();
#ifdef USE_WX_OVERLAY
m_canvas->Refresh();
#endif
} }
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