diff options
-rw-r--r-- | src/libdraw/x11-alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libdraw/x11-alloc.c b/src/libdraw/x11-alloc.c index fa7dddd6..5792864f 100644 --- a/src/libdraw/x11-alloc.c +++ b/src/libdraw/x11-alloc.c @@ -19,6 +19,8 @@ _xallocmemimage(Rectangle r, u32int chan, int pixmap) m = _allocmemimage(r, chan); if(chan != GREY1 && chan != _x.chan) return m; + if(_x.display == 0) + return m; /* * For bootstrapping, don't bother storing 1x1 images |