We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9298b83 + 470a765 commit b166997Copy full SHA for b166997
src/win32/mouse.c
@@ -32,7 +32,7 @@
32
33
MMPoint CalculateAbsoluteCoordinates(MMPoint point) {
34
MMSize displaySize = getMainDisplaySize();
35
- return MMPointMake((point.x / displaySize.width) * ABSOLUTE_COORD_CONST, (point.y / displaySize.height) * ABSOLUTE_COORD_CONST);
+ return MMPointMake(((float) point.x / displaySize.width) * ABSOLUTE_COORD_CONST, ((float) point.y / displaySize.height) * ABSOLUTE_COORD_CONST);
36
}
37
38
/**
0 commit comments