]> Shamusworld >> Repos - ttedit/blobdiff - src/graphicprimitives.h
Fix to prevent segfaulting on 64-bit platforms.
[ttedit] / src / graphicprimitives.h
index 81e15abf8da68afecde87fafbda8549de4d0e0ea..1513ebbe4ba23c4617f31e5891fca79e2008e8c5 100755 (executable)
@@ -8,7 +8,7 @@
 #ifndef __GRAPHICPRIMITIVES_H__
 #define __GRAPHICPRIMITIVES_H__
 
-#include <wx/wx.h>                                                             // For device context
+#include <QtGui>                                                               // For QPainter
 #include "types.h"                                                             // For int32
 
 struct point
@@ -18,10 +18,10 @@ struct point
        point(float xx = 0, float yy = 0): x(xx), y(yy) {}
 };
 
-void Bezier(wxDC &, point, point, point);
-void DrawRoundDot(wxDC &, int32, int32);
-void DrawSquareDot(wxDC &, int32, int32);
-void DrawRoundDotN(wxDC &, int32, int32, uint32);
-void DrawSquareDotN(wxDC &, int32, int32, uint32);
+void Bezier(QPainter &, point, point, point);
+void DrawRoundDot(QPainter &, int32, int32);
+void DrawSquareDot(QPainter &, int32, int32);
+void DrawRoundDotN(QPainter &, int32, int32, uint32);
+void DrawSquareDotN(QPainter &, int32, int32, uint32);
 
 #endif // __GRAPHICPRIMITIVES_H__