ui/qt/graphics.cpp

changeset 114
909fe96e5659
parent 103
6a6718269c22
child 115
102fc0b8fe3e
--- a/ui/qt/graphics.cpp	Sun Jan 24 19:57:16 2016 +0100
+++ b/ui/qt/graphics.cpp	Sun Jan 24 22:20:47 2016 +0100
@@ -112,6 +112,12 @@
     gr->painter->setPen(gr->color);
 }
 
+void ui_draw_line(UiGraphics *g, int x1, int y1, int x2, int y2) {
+    UiQtGraphics *gr = (UiQtGraphics*)g;
+    
+    gr->painter->drawLine(x1, y1, x2, y2);
+}
+
 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) {
     UiQtGraphics *gr = (UiQtGraphics*)g;
     

mercurial