From ecdecae370ea13343bbfab0f9aa712c83c2fdfb0 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Apr 2004 21:33:10 +0000 Subject: little fixes --- src/cmd/draw/img.c | 2 +- src/cmd/draw/mc.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd/draw/img.c b/src/cmd/draw/img.c index b46bcf34..354e5885 100644 --- a/src/cmd/draw/img.c +++ b/src/cmd/draw/img.c @@ -42,7 +42,7 @@ main(int argc, char **argv) }else fd = 0; - if(initdraw(nil, nil, nil) < 0) + if(initdraw(0, nil, nil) < 0) sysfatal("initdraw: %r"); if((image=readimage(display, fd, 0)) == nil) diff --git a/src/cmd/draw/mc.c b/src/cmd/draw/mc.c index cc66707c..4e554d0e 100644 --- a/src/cmd/draw/mc.c +++ b/src/cmd/draw/mc.c @@ -89,6 +89,7 @@ threadmain(int argc, char *argv[]) } } columnate(); + Bflush(&bout); exits(0); } void -- cgit v1.2.3