aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/x11-cload.c
blob: 1666eceded666596d4e8b512a82bdf3438397062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <u.h>
#include "x11-inc.h"
#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);
	return n;
}