X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38a489ae3698a1a7912a80b84e973040f0eee73c..d4fce50a5a10fbe0592de5b116b40ed7f12f4431:/utils/ogl/samples/ogledit/doc.cpp?ds=sidebyside diff --git a/utils/ogl/samples/ogledit/doc.cpp b/utils/ogl/samples/ogledit/doc.cpp index e617c7eee7..5e11ad2d05 100644 --- a/utils/ogl/samples/ogledit/doc.cpp +++ b/utils/ogl/samples/ogledit/doc.cpp @@ -458,7 +458,7 @@ void MyEvtHandler::OnBeginDragRight(double x, double y, int keys, int attachment dc.SetPen(dottedPen); double xp, yp; GetShape()->GetAttachmentPosition(attachment, &xp, &yp); - dc.DrawLine(xp, yp, x, y); + dc.DrawLine((long) xp, (long) yp, (long) x, (long) y); GetShape()->GetCanvas()->CaptureMouse(); } @@ -475,7 +475,7 @@ void MyEvtHandler::OnDragRight(bool draw, double x, double y, int keys, int atta dc.SetPen(dottedPen); double xp, yp; GetShape()->GetAttachmentPosition(attachment, &xp, &yp); - dc.DrawLine(xp, yp, x, y); + dc.DrawLine((long) xp, (long) yp, (long) x, (long) y); } void MyEvtHandler::OnEndDragRight(double x, double y, int keys, int attachment)