Fix win32 and cocoa build errors

This commit is contained in:
dP
2021-01-30 01:50:46 +03:00
parent b126f52ec6
commit 3b72a20dbd
2 changed files with 3 additions and 3 deletions

View File

@@ -403,7 +403,7 @@ QZ_MouseButtonEvent(int button, BOOL down)
if (!down && button >= CM_WKC_MOUSE_OTHER_START && button < CM_WKC_MOUSE_OTHER_END) {
HandleKeypress(button, 0);
}
break
break;
}
}
}

View File

@@ -718,12 +718,12 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
/* CityMania code start */
case WM_MBUTTONUP:
ReleaseCapture();
HandleKeypress(CM_WKC_MOUSE_MIDDLE);
HandleKeypress(CM_WKC_MOUSE_MIDDLE, 0);
return 0;
case WM_XBUTTONUP: {
ReleaseCapture();
int button = CM_WKC_MOUSE_OTHER_START + ev.button.button - 1;
int button = CM_WKC_MOUSE_OTHER_START + GET_XBUTTON_WPARAM(wParam) - 1;
if (button >= CM_WKC_MOUSE_OTHER_START && button < CM_WKC_MOUSE_OTHER_END) {
HandleKeypress(button, 0);
}