Adjusted level-of-detail thresholds for BOARD_ITEMs visibility
Fixes: lp:1801056 * https://bugs.launchpad.net/kicad/+bug/1801056
This commit is contained in:
parent
69952a7b9f
commit
8d73cfef2a
|
@ -1008,7 +1008,7 @@ unsigned int MODULE::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
|
||||||
|
|
||||||
// Currently it is only for anchor layer
|
// Currently it is only for anchor layer
|
||||||
if( aView->IsLayerVisible( layer ) )
|
if( aView->IsLayerVisible( layer ) )
|
||||||
return 30;
|
return 3;
|
||||||
|
|
||||||
return std::numeric_limits<unsigned int>::max();
|
return std::numeric_limits<unsigned int>::max();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1342,7 +1342,7 @@ unsigned int D_PAD::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
|
||||||
if( divisor == 0 )
|
if( divisor == 0 )
|
||||||
return HIDE;
|
return HIDE;
|
||||||
|
|
||||||
return ( Millimeter2iu( 100 ) / divisor );
|
return ( Millimeter2iu( 20 ) / divisor );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Other layers are shown without any conditions
|
// Other layers are shown without any conditions
|
||||||
|
|
|
@ -770,7 +770,7 @@ unsigned int TRACK::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
|
||||||
// Netnames will be shown only if zoom is appropriate
|
// Netnames will be shown only if zoom is appropriate
|
||||||
if( IsNetnameLayer( aLayer ) )
|
if( IsNetnameLayer( aLayer ) )
|
||||||
{
|
{
|
||||||
return ( 40000000 / ( m_Width + 1 ) );
|
return ( 4000000 / ( m_Width + 1 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Other layers are shown without any conditions
|
// Other layers are shown without any conditions
|
||||||
|
|
Loading…
Reference in New Issue