Removal of internal units.
* Remove internal units from BASE_SCREEN and it's derivatives. * Remove internal units from EDA_DRAW_FRAME and it's derivatives. * Use build time code to replace internal units conversions. * Fix scaling bug in page layout sample window that I created in my last commit.
This commit is contained in:
@@ -30,9 +30,8 @@ void EDA_DRAW_FRAME::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
|
||||
wxPoint pos, ref;
|
||||
EDA_COLOR_T color;
|
||||
|
||||
// paper is sized in mils. Here is a conversion factor to
|
||||
// scale mils to internal units.
|
||||
int conv_unit = screen->GetInternalUnits() / 1000;
|
||||
// Paper is sized in mils. Here is a conversion factor to scale mils to internal units.
|
||||
int conv_unit = screen->MilsToIuScalar();
|
||||
|
||||
wxString msg;
|
||||
wxSize text_size;
|
||||
|
||||
Reference in New Issue
Block a user