]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove the wrong "std::" scope prefix before ceil() call.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Mar 2012 13:00:51 +0000 (13:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Mar 2012 13:00:51 +0000 (13:00 +0000)
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

src/msw/uiaction.cpp

index 2210395445caa0ea6536abe8a213e1ff775a5a70..5aff359052527b1f53867bc8eec7a167997de887 100644 (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;