ref: 37ef30916cf30b47f92cf8f815caa23424263a5a
dir: /gui-x11/cload.c/
#include <u.h> #include <libc.h> #include <draw.h> #include <memdraw.h> #include "xmem.h" int cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata) { int n; n = _cloadmemimage(i, r, data, ndata); if(n > 0 && i->X) putXdata(i, r); return n; }