← Back to team overview

kicad-developers team mailing list archive

Patch: Fix some more cursor artifacts

 

This patch fixes some more cases where the grid cursor is not removed prior to drawing on the screen.

*** c:/kicad-dev/pcbnew/edit_track_width.cpp~ Mon Dec 5 09:47:56 2005
--- c:/kicad-dev/pcbnew/edit_track_width.cpp Tue Apr 4 14:46:12 2006
***************
*** 24,29 ****
--- 24,30 ----
int errdrc = OK_DRC;
int old_w, consigne ;

+ GetScreen()->Trace_Curseur(DrawPanel, DC);
pt_segm->Draw(DrawPanel, DC, GR_XOR) ; // effacement a l'ecran

/* Test DRC et mise a la largeur */
***************
*** 44,49 ****
--- 45,51 ----
else GetScreen()->SetModify(); /* Correction systematiquement faite si reduction */

pt_segm->Draw(DrawPanel, DC, GR_OR) ;
+ GetScreen()->Trace_Curseur(DrawPanel, DC);
return(errdrc);
}
*** c:/kicad-dev/pcbnew/attribut.cpp~ Wed Feb 2 08:45:24 2005
--- c:/kicad-dev/pcbnew/attribut.cpp Tue Apr 4 14:43:58 2006
***************
*** 21,26 ****
--- 21,27 ----
SEGM_AR Segment AutoRouté
*/
{
+ GetScreen()->Trace_Curseur(DrawPanel, DC);
if ( track )
{
GetScreen()->SetModify();
***************
*** 28,33 ****
--- 29,35 ----
track->Draw(DrawPanel, DC, GR_OR | GR_SURBRILL) ;
Affiche_Infos_Piste(this, track);
}
+ GetScreen()->Trace_Curseur(DrawPanel, DC);
}

***************
*** 39,44 ****
--- 41,47 ----
TRACK *Track ;
int nb_segm;

+ GetScreen()->Trace_Curseur(DrawPanel, DC);
if( (track == NULL ) || (track->m_StructType == TYPEZONE) ) return;

Track = Marque_Une_Piste(this, DC, track, & nb_segm, GR_OR | GR_SURBRILL) ;
***************
*** 51,56 ****
--- 54,60 ----
}

GetScreen()->SetModify();
+ GetScreen()->Trace_Curseur(DrawPanel, DC);
}

/***********************************************************************/
***************
*** 62,67 ****
--- 66,72 ----
{
TRACK *Track = m_Pcb->m_Track;

+ GetScreen()->Trace_Curseur(DrawPanel, DC);
/* Recherche du debut de la zone des pistes du net_code courant */
if ( net_code >= 0 )
{
***************
*** 80,85 ****
--- 85,91 ----
Track = Track->Next();
}
GetScreen()->SetModify();
+ GetScreen()->Trace_Curseur(DrawPanel, DC);
}