]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/ogl/samples/ogledit/doc.cpp
*** empty log message ***
[wxWidgets.git] / utils / ogl / samples / ogledit / doc.cpp
index 484442a349ea84b7cc5167aa3ca570b78ee10f51..5e11ad2d05dc4dd6876402382c36b452b4aa5523 100644 (file)
@@ -24,8 +24,8 @@
 #include <wx/wx.h>
 #endif
 
-#if !USE_DOC_VIEW_ARCHITECTURE
-#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
+#if !wxUSE_DOC_VIEW_ARCHITECTURE
+#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
 #endif
 
 #include "ogledit.h"
@@ -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)