We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5031a36 commit fdac738Copy full SHA for fdac738
src/win32/mouse.c
@@ -35,8 +35,8 @@ static int32_t DEFAULT_DOUBLE_CLICK_INTERVAL_MS = 200;
35
MMPoint CalculateAbsoluteCoordinates(MMPoint point) {
36
MMSize displaySize = getMainDisplaySize();
37
return MMPointMake(
38
- ceil(point.x * ABSOLUTE_COORD_CONST / displaySize.width),
39
- ceil(point.y * ABSOLUTE_COORD_CONST / displaySize.height)
+ ceil((float)(point.x * ABSOLUTE_COORD_CONST) / displaySize.width),
+ ceil((float)(point.y * ABSOLUTE_COORD_CONST) / displaySize.height)
40
);
41
}
42
0 commit comments