Browse Source

Fix scale factors of layer box selectors.

fusion360
Alex Shvartzkop 2 years ago
parent
commit
139d356065
  1. 2
      gerbview/widgets/gbr_layer_box_selector.cpp
  2. 2
      pcbnew/pcb_layer_box_selector.cpp

2
gerbview/widgets/gbr_layer_box_selector.cpp

@ -56,10 +56,10 @@ void GBR_LAYER_BOX_SELECTOR::Resync()
for( int scale = 1; scale <= 3; scale++ )
{
wxBitmap bmp( size * scale, size * scale );
bmp.SetScaleFactor( scale );
DrawColorSwatch( bmp, getLayerColor( LAYER_PCB_BACKGROUND ), getLayerColor( layerid ) );
bmp.SetScaleFactor( scale );
bitmaps.push_back( bmp );
}

2
pcbnew/pcb_layer_box_selector.cpp

@ -63,10 +63,10 @@ void PCB_LAYER_BOX_SELECTOR::Resync()
for( int scale = 1; scale <= 3; scale++ )
{
wxBitmap bmp( size * scale, size * scale );
bmp.SetScaleFactor( scale );
DrawColorSwatch( bmp, getLayerColor( LAYER_PCB_BACKGROUND ), getLayerColor( layerid ) );
bmp.SetScaleFactor( scale );
bitmaps.push_back( bmp );
}

Loading…
Cancel
Save