Skip to content

Commit

Permalink
Merge pull request #688 from db0z/master
Browse files Browse the repository at this point in the history
Re-enable tumbler mouse clicks
  • Loading branch information
nesbox authored Aug 19, 2018
2 parents b733bdd + 210bfc6 commit cd26848
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/music.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,12 +1342,12 @@ static void drawTumbler(Music* music, s32 x, s32 y, s32 index)

if(checkMouseClick(&rect, tic_mouse_left))
{
// if (SDL_GetModState() & KMOD_CTRL)
// {
// for (s32 i = 0; i < TIC_SOUND_CHANNELS; i++)
// music->tracker.patterns[i] = i == index;
// }
// else music->tracker.patterns[index] = !music->tracker.patterns[index];
if (tic->api.key(tic, tic_key_ctrl))
{
for (s32 i = 0; i < TIC_SOUND_CHANNELS; i++)
music->tracker.patterns[i] = i == index;
}
else music->tracker.patterns[index] = !music->tracker.patterns[index];
}
}

Expand Down

0 comments on commit cd26848

Please sign in to comment.