Merge pull request #688 from db0z/master

Re-enable tumbler mouse clicks
This commit is contained in:
Vadim Grigoruk 2018-08-19 08:18:18 +03:00 committed by GitHub
commit cd26848048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -1342,12 +1342,12 @@ static void drawTumbler(Music* music, s32 x, s32 y, s32 index)
if(checkMouseClick(&rect, tic_mouse_left)) if(checkMouseClick(&rect, tic_mouse_left))
{ {
// if (SDL_GetModState() & KMOD_CTRL) if (tic->api.key(tic, tic_key_ctrl))
// { {
// for (s32 i = 0; i < TIC_SOUND_CHANNELS; i++) for (s32 i = 0; i < TIC_SOUND_CHANNELS; i++)
// music->tracker.patterns[i] = i == index; music->tracker.patterns[i] = i == index;
// } }
// else music->tracker.patterns[index] = !music->tracker.patterns[index]; else music->tracker.patterns[index] = !music->tracker.patterns[index];
} }
} }