Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enumerate all music tab values in switch #2395

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/studio/editors/music.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ static void copyToClipboard(Music* music, bool cut)
{
case MUSIC_TRACKER_TAB: copyTrackerToClipboard(music, cut); break;
case MUSIC_PIANO_TAB: copyPianoToClipboard(music, cut); break;
case MUSIC_TAB_COUNT: break; // No-op.
}
}

Expand All @@ -825,6 +826,7 @@ static void copyFromClipboard(Music* music)
{
case MUSIC_TRACKER_TAB: copyTrackerFromClipboard(music); break;
case MUSIC_PIANO_TAB: copyPianoFromClipboard(music); break;
case MUSIC_TAB_COUNT: break; // No-op.
}
}

Expand Down Expand Up @@ -1580,6 +1582,9 @@ static void processKeyboard(Music* music)
case MUSIC_PIANO_TAB:
processPianoKeyboard(music);
break;
case MUSIC_TAB_COUNT:
// No-op.
break;
}
}

Expand Down Expand Up @@ -2986,6 +2991,7 @@ static void tick(Music* music)
{
case MUSIC_TRACKER_TAB: drawTrackerLayout(music, 7, 35); break;
case MUSIC_PIANO_TAB: drawPianoLayout(music); break;
case MUSIC_TAB_COUNT: break; // No-op.
}

drawMusicToolbar(music);
Expand Down
Loading