beautified
This commit is contained in:
parent
01df6c34f7
commit
0760976fcd
|
@ -1,6 +1,6 @@
|
|||
/*************************/
|
||||
/* affichage des modules */
|
||||
/*************************/
|
||||
/*************************/
|
||||
/* affichage des modules */
|
||||
/*************************/
|
||||
|
||||
#include "fctsys.h"
|
||||
#include "gr_basic.h"
|
||||
|
@ -18,7 +18,7 @@
|
|||
#endif
|
||||
|
||||
/* Police des caracteres de la routine de trace des textes */
|
||||
extern char *graphic_fonte_shape[];
|
||||
extern char* graphic_fonte_shape[];
|
||||
|
||||
#include "protos.h"
|
||||
|
||||
|
@ -27,40 +27,39 @@ extern char *graphic_fonte_shape[];
|
|||
/* fonctions locales : */
|
||||
|
||||
|
||||
|
||||
/******************************************************************/
|
||||
void Trace_Pads_Only(WinEDA_DrawPanel * panel, wxDC * DC, MODULE * Module,
|
||||
int ox, int oy,
|
||||
int MasqueLayer,int draw_mode)
|
||||
void Trace_Pads_Only( WinEDA_DrawPanel* panel, wxDC* DC, MODULE* Module,
|
||||
int ox, int oy,
|
||||
int MasqueLayer, int draw_mode )
|
||||
/******************************************************************/
|
||||
|
||||
/* Trace les pads d'un module en mode SKETCH.
|
||||
Utilisee pour afficher les pastilles d'un module lorsque celui ci n'est
|
||||
pas affiche par les options d'affichage des Modules
|
||||
|
||||
Les pads affiches doivent apparaitre sur les couches donnees par
|
||||
MasqueLayer
|
||||
*/
|
||||
* Utilisee pour afficher les pastilles d'un module lorsque celui ci n'est
|
||||
* pas affiche par les options d'affichage des Modules
|
||||
*
|
||||
* Les pads affiches doivent apparaitre sur les couches donnees par
|
||||
* MasqueLayer
|
||||
*/
|
||||
{
|
||||
int tmp;
|
||||
D_PAD * pt_pad ;
|
||||
PCB_SCREEN * screen;
|
||||
WinEDA_BasePcbFrame * frame;
|
||||
int tmp;
|
||||
D_PAD* pt_pad;
|
||||
PCB_SCREEN* screen;
|
||||
WinEDA_BasePcbFrame* frame;
|
||||
|
||||
screen = (PCB_SCREEN *) panel->GetScreen();
|
||||
frame = (WinEDA_BasePcbFrame *) panel->m_Parent;
|
||||
screen = (PCB_SCREEN*) panel->GetScreen();
|
||||
frame = (WinEDA_BasePcbFrame*) panel->m_Parent;
|
||||
|
||||
tmp = frame->m_DisplayPadFill;
|
||||
frame->m_DisplayPadFill = FALSE;
|
||||
tmp = frame->m_DisplayPadFill;
|
||||
frame->m_DisplayPadFill = FALSE;
|
||||
|
||||
/* trace des pastilles */
|
||||
pt_pad = Module->m_Pads;
|
||||
for( ; pt_pad != NULL; pt_pad = (D_PAD*) pt_pad->Pnext )
|
||||
{
|
||||
if( (pt_pad->m_Masque_Layer & MasqueLayer) == 0 ) continue;
|
||||
pt_pad->Draw(panel, DC, wxPoint(ox,oy), draw_mode);
|
||||
}
|
||||
/* trace des pastilles */
|
||||
pt_pad = Module->m_Pads;
|
||||
for( ; pt_pad != NULL; pt_pad = (D_PAD*) pt_pad->Pnext )
|
||||
{
|
||||
if( (pt_pad->m_Masque_Layer & MasqueLayer) == 0 )
|
||||
continue;
|
||||
pt_pad->Draw( panel, DC, wxPoint( ox, oy ), draw_mode );
|
||||
}
|
||||
|
||||
frame->m_DisplayPadFill = tmp;
|
||||
frame->m_DisplayPadFill = tmp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue