Rationalize penWidth processing as first step in removing some globals.

This commit is contained in:
Jeff Young
2020-04-13 20:58:13 +01:00
parent d014dc47ab
commit 6e800bddae
53 changed files with 261 additions and 425 deletions
+2 -2
View File
@@ -361,7 +361,7 @@ void BRDITEMS_PLOTTER::PlotTextModule( TEXTE_MODULE* pt_texte, COLOR4D aColor )
orient = pt_texte->GetDrawRotation();
thickness = pt_texte->GetThickness();
thickness = pt_texte->GetEffectiveTextPenWidth( nullptr );
if( pt_texte->IsMirrored() )
size.x = -size.x; // Text is mirrored
@@ -653,7 +653,7 @@ void BRDITEMS_PLOTTER::PlotTextePcb( TEXTE_PCB* pt_texte )
size = pt_texte->GetTextSize();
pos = pt_texte->GetTextPos();
orient = pt_texte->GetTextAngle();
thickness = pt_texte->GetThickness();
thickness = pt_texte->GetEffectiveTextPenWidth( nullptr );
if( pt_texte->IsMirrored() )
size.x = -size.x;