Skip to content

Commit b166997

Browse files
authored
Merge pull request #84 from Reiss-Cashmore/develop
Bugfix for lost co-ordinate precision
2 parents 9298b83 + 470a765 commit b166997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win32/mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
MMPoint CalculateAbsoluteCoordinates(MMPoint point) {
3434
MMSize displaySize = getMainDisplaySize();
35-
return MMPointMake((point.x / displaySize.width) * ABSOLUTE_COORD_CONST, (point.y / displaySize.height) * ABSOLUTE_COORD_CONST);
35+
return MMPointMake(((float) point.x / displaySize.width) * ABSOLUTE_COORD_CONST, ((float) point.y / displaySize.height) * ABSOLUTE_COORD_CONST);
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)