plan9port/src/libdraw/x11-cload.c

19 lines
291 B
C
Raw Normal View History

2003-09-30 17:47:42 +00:00
#include <u.h>
2004-03-26 01:59:35 +00:00
#include "x11-inc.h"
2003-09-30 17:47:42 +00:00
#include <libc.h>
#include <draw.h>
#include <memdraw.h>
#include "x11-memdraw.h"
int
cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
{
int n;
n = _cloadmemimage(i, r, data, ndata);
if(n > 0 && i->X)
_xputxdata(i, r);
2003-09-30 17:47:42 +00:00
return n;
}