X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfad0599246651d4994e348d868a3e65613c7379..77902671753529da1345efb71ff6017cb882bedc:/utils/ogl/src/canvas.cpp?ds=sidebyside diff --git a/utils/ogl/src/canvas.cpp b/utils/ogl/src/canvas.cpp index 9d37801bf3..edc898be23 100644 --- a/utils/ogl/src/canvas.cpp +++ b/utils/ogl/src/canvas.cpp @@ -24,9 +24,7 @@ #include #endif -#ifdef PROLOGIO #include -#endif #if wxUSE_IOSTREAMH #include @@ -122,8 +120,8 @@ void wxShapeCanvas::OnMouseEvent(wxMouseEvent& event) // from, this may not be an intentional drag at all. if (dragging) { - int dx = abs(dc.LogicalToDeviceX(x - m_firstDragX)); - int dy = abs(dc.LogicalToDeviceY(y - m_firstDragY)); + int dx = abs(dc.LogicalToDeviceX((long) (x - m_firstDragX))); + int dy = abs(dc.LogicalToDeviceY((long) (y - m_firstDragY))); if (m_checkTolerance && (dx <= GetDiagram()->GetMouseTolerance()) && (dy <= GetDiagram()->GetMouseTolerance())) { return;