diff -r 500c085d2133 -r 909fe96e5659 ui/motif/graphics.c --- 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) {