Adjustments for GTK.

This commit is contained in:
Jeff Young 2023-01-04 01:17:25 +00:00
parent 14339aa786
commit b9f1106781
1 changed files with 8 additions and 2 deletions

View File

@ -82,8 +82,10 @@ void PANEL_SETUP_PINMAP::reBuildMatrixPanel()
#ifdef __WXMAC__
bitmapSize += { 4, 2 };
#else
#elifdef __WXMSW__
bitmapSize += { 3, 2 };
#else
bitmapSize += { 0, 1 };
#endif
if( !m_initialized )
@ -119,6 +121,8 @@ void PANEL_SETUP_PINMAP::reBuildMatrixPanel()
#ifdef __WXMAC__
charSize += { 0, 2 };
#elifdef __WXGTK__
offset += { -3, -1 };
#endif
for( int ii = 0; ii < ELECTRICAL_PINTYPES_TOTAL; ii++ )
@ -152,8 +156,10 @@ void PANEL_SETUP_PINMAP::reBuildMatrixPanel()
#ifdef __WXMAC__
btn->SetSize( btn->GetSize().x - 1, btn->GetSize().y );
#else
#elifdef __WXMSW__
btn->SetSize( btn->GetSize().x + 1, btn->GetSize().y );
#else
btn->SetSize( btn->GetSize().x - 4, btn->GetSize().y );
#endif
m_buttonList[ii][jj] = btn;
setDRCMatrixButtonState( m_buttonList[ii][jj], diag );