Fix scale factors of layer box selectors.
This commit is contained in:
parent
51004e42f4
commit
139d356065
|
@ -56,10 +56,10 @@ void GBR_LAYER_BOX_SELECTOR::Resync()
|
||||||
for( int scale = 1; scale <= 3; scale++ )
|
for( int scale = 1; scale <= 3; scale++ )
|
||||||
{
|
{
|
||||||
wxBitmap bmp( size * scale, size * scale );
|
wxBitmap bmp( size * scale, size * scale );
|
||||||
bmp.SetScaleFactor( scale );
|
|
||||||
|
|
||||||
DrawColorSwatch( bmp, getLayerColor( LAYER_PCB_BACKGROUND ), getLayerColor( layerid ) );
|
DrawColorSwatch( bmp, getLayerColor( LAYER_PCB_BACKGROUND ), getLayerColor( layerid ) );
|
||||||
|
|
||||||
|
bmp.SetScaleFactor( scale );
|
||||||
bitmaps.push_back( bmp );
|
bitmaps.push_back( bmp );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,10 +63,10 @@ void PCB_LAYER_BOX_SELECTOR::Resync()
|
||||||
for( int scale = 1; scale <= 3; scale++ )
|
for( int scale = 1; scale <= 3; scale++ )
|
||||||
{
|
{
|
||||||
wxBitmap bmp( size * scale, size * scale );
|
wxBitmap bmp( size * scale, size * scale );
|
||||||
bmp.SetScaleFactor( scale );
|
|
||||||
|
|
||||||
DrawColorSwatch( bmp, getLayerColor( LAYER_PCB_BACKGROUND ), getLayerColor( layerid ) );
|
DrawColorSwatch( bmp, getLayerColor( LAYER_PCB_BACKGROUND ), getLayerColor( layerid ) );
|
||||||
|
|
||||||
|
bmp.SetScaleFactor( scale );
|
||||||
bitmaps.push_back( bmp );
|
bitmaps.push_back( bmp );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue