Skip to content

Commit 5c939c3

Browse files
committed
Change minimized track numbering pattern
1 parent e7fbfe9 commit 5c939c3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Source/Plugins/LfpDisplayNodeAlpha/LfpDisplayCanvas.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,7 +3643,7 @@ void LfpChannelDisplayInfo::mouseUp(const MouseEvent &e)
36433643
void LfpChannelDisplayInfo::paint(Graphics& g)
36443644
{
36453645

3646-
int center = getHeight()/2;
3646+
int center = getHeight()/2 - (isSingleChannel?(75):(0));
36473647

36483648
// g.setColour(lineColour);
36493649
//if (chan > 98)
@@ -3712,7 +3712,7 @@ void LfpChannelDisplayInfo::updateXY(float x_, float y_)
37123712
void LfpChannelDisplayInfo::resized()
37133713
{
37143714

3715-
// int center = getHeight()/2;
3715+
int center = getHeight()/2 - (isSingleChannel?(75):(0));
37163716

37173717
//if (chan > 98)
37183718
// enableButton->setBounds(8,center-5,45,16);
@@ -3723,10 +3723,10 @@ void LfpChannelDisplayInfo::resized()
37233723

37243724
if (getEnabledButtonVisibility())
37253725
{
3726-
enableButton->setBounds(getWidth()/4 + 5, (getHeight()/2) - 7, 15, 15);
3726+
enableButton->setBounds(getWidth()/4 + 5, (center) - 7, 15, 15);
37273727
}
37283728

3729-
setChannelNumberIsHidden(getHeight() < 16 && getChannelNumber() % 5 != 0);
3729+
setChannelNumberIsHidden(getHeight() < 16 && (getChannelNumber() + 1) % 10 != 0);
37303730

37313731
setChannelTypeStringVisibility(getHeight() > 34);
37323732
}

0 commit comments

Comments
 (0)