Fix cocoa compile error

This commit is contained in:
dP
2021-01-29 19:41:03 +03:00
parent cc2d08de4e
commit 21e6c401b1

View File

@@ -399,9 +399,9 @@ QZ_MouseButtonEvent(int button, BOOL down)
break; break;
default: { default: {
int button = CM_WKC_MOUSE_OTHER_START + ev.button.button - 3; int cm_button = CM_WKC_MOUSE_OTHER_START + button - 3;
if (!down && button >= CM_WKC_MOUSE_OTHER_START && button < CM_WKC_MOUSE_OTHER_END) { if (!down && cm_button >= CM_WKC_MOUSE_OTHER_START && cm_button < CM_WKC_MOUSE_OTHER_END) {
HandleKeypress(button, 0); HandleKeypress(cm_button, 0);
} }
break; break;
} }