Skip to content

Commit

Permalink
Merge pull request #2395 from Wang-Yue/patch-4
Browse files Browse the repository at this point in the history
enumerate all music tab values in switch
  • Loading branch information
nesbox authored Dec 10, 2023
2 parents fc831f9 + 2be2e64 commit e21e910
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit e21e910

Please sign in to comment.