X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c827c6eefd368a9c500a7d87fe4e37e29c5ebf4..404b319a85dadd7decf7a5a5331020520031a41c:/src/msw/uiaction.cpp?ds=inline diff --git a/src/msw/uiaction.cpp b/src/msw/uiaction.cpp index 2210395445..5aff359052 100644 --- a/src/msw/uiaction.cpp +++ b/src/msw/uiaction.cpp @@ -65,8 +65,8 @@ bool wxUIActionSimulator::MouseMove(long x, long y) int displayx, displayy; wxDisplaySize(&displayx, &displayy); - int scaledx = std::ceil((float)x * 65535.0 / (displayx-1)); - int scaledy = std::ceil((float)y * 65535.0 / (displayy-1)); + int scaledx = ceil((float)x * 65535.0 / (displayx-1)); + int scaledy = ceil((float)y * 65535.0 / (displayy-1)); mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, scaledx, scaledy, 0, 0); return true;