aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/machdep.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-11 16:48:35 +0000
committerrsc <devnull@localhost>2005-01-11 16:48:35 +0000
commit2e65dc0d024b01f99995983575317ff95cce1755 (patch)
tree66837ff157985946912820167b09c725374306ca /src/cmd/plot/libplot/machdep.c
parent515bd9ec76a7990c6719ab2ff42655b88a064c8d (diff)
changes from rob
Diffstat (limited to 'src/cmd/plot/libplot/machdep.c')
-rw-r--r--src/cmd/plot/libplot/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/plot/libplot/machdep.c b/src/cmd/plot/libplot/machdep.c
index 4f60dccc..da7077aa 100644
--- a/src/cmd/plot/libplot/machdep.c
+++ b/src/cmd/plot/libplot/machdep.c
@@ -68,7 +68,8 @@ void m_initialize(char *s){
int dx, dy;
USED(s);
if(first){
- initdraw(0,0,"plot");
+ if(initdraw(0,0,"plot") < 0)
+ sysfatal("plot: can't open display: %r");
einit(Emouse);
clipminx=mapminx=screen->r.min.x+4;
clipminy=mapminy=screen->r.min.y+4;