mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-22 23:49:50 +00:00
midi: Fix unneeded left shift for MEVT_F_LONG
MEVT_F_LONG is a DWORD type with a value of 0x80000000, so there is no need to left-shit it.
This commit is contained in:
parent
a7bc0ad68f
commit
2dae318636
@ -349,7 +349,7 @@ static bool winmm_midi_write_long_event(winmm_midi_buffer_t *buf,
|
||||
|
||||
buf->data[i++] = delta_time;
|
||||
buf->data[i++] = 0;
|
||||
buf->data[i++] = MEVT_F_LONG << 24 | MEVT_LONGMSG << 24 | data_size;
|
||||
buf->data[i++] = MEVT_F_LONG | MEVT_LONGMSG << 24 | data_size;
|
||||
|
||||
memcpy(&buf->data[i], data, data_size);
|
||||
buf->header.dwBytesRecorded += sizeof(DWORD) * 3 + data_size;
|
||||
|
Loading…
Reference in New Issue
Block a user