Loading common/base_screen.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -456,6 +456,7 @@ void BASE_SCREEN::AddGrid( const wxRealPoint& size, UserUnitType aUnit, int id ) y = size.y / 25.4; y = size.y / 25.4; break; break; default: case INCHES: case INCHES: case UNSCALED_UNITS: case UNSCALED_UNITS: x = size.x; x = size.x; Loading common/common.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -506,6 +506,7 @@ int From_User_Unit( UserUnitType aUnit, double val, int internal_unit_value ) value = val * internal_unit_value; value = val * internal_unit_value; break; break; default: case UNSCALED_UNITS: case UNSCALED_UNITS: value = val; value = val; } } Loading common/gr_basic.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -143,6 +143,8 @@ int GRMapY( int y ) #define WHEN_INSIDE #define WHEN_INSIDE #if defined( USE_WX_ZOOM ) // currently only used if USE_WX_ZOOM is defined. /** /** * Test if any part of a line falls within the bounds of a rectangle. * Test if any part of a line falls within the bounds of a rectangle. * * Loading Loading @@ -373,6 +375,8 @@ static bool clipLine( EDA_Rect* aClipBox, int& x1, int& y1, int& x2, int& y2 ) return true; return true; } } #endif // if defined( USE_WX_ZOOM ) /** /** * Function clip_line * Function clip_line Loading Loading
common/base_screen.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -456,6 +456,7 @@ void BASE_SCREEN::AddGrid( const wxRealPoint& size, UserUnitType aUnit, int id ) y = size.y / 25.4; y = size.y / 25.4; break; break; default: case INCHES: case INCHES: case UNSCALED_UNITS: case UNSCALED_UNITS: x = size.x; x = size.x; Loading
common/common.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -506,6 +506,7 @@ int From_User_Unit( UserUnitType aUnit, double val, int internal_unit_value ) value = val * internal_unit_value; value = val * internal_unit_value; break; break; default: case UNSCALED_UNITS: case UNSCALED_UNITS: value = val; value = val; } } Loading
common/gr_basic.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -143,6 +143,8 @@ int GRMapY( int y ) #define WHEN_INSIDE #define WHEN_INSIDE #if defined( USE_WX_ZOOM ) // currently only used if USE_WX_ZOOM is defined. /** /** * Test if any part of a line falls within the bounds of a rectangle. * Test if any part of a line falls within the bounds of a rectangle. * * Loading Loading @@ -373,6 +375,8 @@ static bool clipLine( EDA_Rect* aClipBox, int& x1, int& y1, int& x2, int& y2 ) return true; return true; } } #endif // if defined( USE_WX_ZOOM ) /** /** * Function clip_line * Function clip_line Loading