tdon't require x - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e290cfc1385e6ccb277d938981d87a81947166b3
 (DIR) parent 9a4289cfdc3a296fddf27592d83523d270018849
 (HTM) Author: rsc <devnull@localhost>
       Date:   Wed,  9 Jun 2004 14:11:47 +0000
       
       don't require x
       
       Diffstat:
         M src/libdraw/x11-alloc.c             |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/libdraw/x11-alloc.c b/src/libdraw/x11-alloc.c
       t@@ -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