]> Shamusworld >> Repos - architektonas/blobdiff - src/painter.cpp
Initial work on bringing sanity to insane codebase.
[architektonas] / src / painter.cpp
index 4213261315b7aacb66a4e9420a98061cd6f350e1..bdac361f59b64d7f68b2aca874ac169c0d92837d 100644 (file)
@@ -15,7 +15,8 @@
 #include "painter.h"
 
 #include "mathconstants.h"
-#include "object.h"
+//#include "object.h"
+#include "global.h"
 
 
 // Set class variable defaults
@@ -343,7 +344,7 @@ void Painter::DrawCrosshair(Vector point)
 
 void Painter::DrawInformativeText(QString text)
 {
-       painter->setFont(*Object::font);
+       painter->setFont(*Global::font);
        QRectF bounds = painter->boundingRect(QRectF(), Qt::AlignVCenter, text);
        bounds.moveTo(17.0, 17.0);
        QRectF textRect = bounds;