Fix scale factors of layer box selectors.

This commit is contained in:
Alex Shvartzkop 2024-05-28 18:51:28 +03:00
parent 51004e42f4
commit 139d356065
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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 );
}