]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/ogl/samples/ogledit/doc.cpp
Restored the old Dialog Editor files.
[wxWidgets.git] / utils / ogl / samples / ogledit / doc.cpp
index e617c7eee747046d463b54afa552eef6f2f55c26..5e11ad2d05dc4dd6876402382c36b452b4aa5523 100644 (file)
@@ -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)