ui/motif/graphics.c

changeset 114
909fe96e5659
parent 103
6a6718269c22
child 115
102fc0b8fe3e
--- a/ui/motif/graphics.c	Sun Jan 24 19:57:16 2016 +0100
+++ b/ui/motif/graphics.c	Sun Jan 24 22:20:47 2016 +0100
@@ -220,6 +220,11 @@
     XSetForeground(gr->display, gr->gc, color.pixel);
 }
 
+void ui_draw_line(UiGraphics *g, int x1, int y1, int x2, int y2) {
+    UiXlibGraphics *gr = (UiXlibGraphics*)g;
+    XDrawLine(gr->display, XtWindow(gr->widget), gr->gc, x1, y1, x2, y2);
+}
+
 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) {
     UiXlibGraphics *gr = (UiXlibGraphics*)g;
     if(fill) {

mercurial