aboutsummaryrefslogtreecommitdiff
path: root/src/libdraw/x11-load.c
blob: e4e32bf2419d2bbb9d58d22c8fd1f40195ea9004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "x11-inc.h"

#include <u.h>
#include <libc.h>
#include <draw.h>
#include <memdraw.h>
#include "x11-memdraw.h"

int
loadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
{
	int n;

	n = _loadmemimage(i, r, data, ndata);
	if(n > 0 && i->X)
		xputxdata(i, r);
	return n;
}