Remove the wrong "std::" scope prefix before ceil() call.

Fix compilation errors with VC6 (and possibly other compilers) introduced in
r70797 (see #13383): as we only include <math.h> and not <cmath> we don't
necessarily have std::ceil() available, only the extern "C" ceil(). Just use
the latter instead of the former.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-03-05 13:00:51 +00:00
parent 637ea0080f
commit c6907dcd41

View File

@@ -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;