This commit is contained in:
Daniel Collin 2022-03-14 16:05:25 +01:00
parent ad9648769d
commit 9dcbac0285

View file

@ -218,7 +218,11 @@ unsafe extern "system" fn wnd_proc(
winuser::WM_LBUTTONUP => wnd.mouse.state[0] = false,
winuser::WM_MOUSEMOVE => {
let button_checks = [winuser::MK_LBUTTON, winuser::MK_MBUTTON, winuser::MK_RBUTTON];
let button_checks = [
winuser::MK_LBUTTON,
winuser::MK_MBUTTON,
winuser::MK_RBUTTON,
];
for i in 0..3 {
if (wparam & button_checks[i]) == button_checks[i] {