aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/x11-unload.c
blob: d01a232ff99e9d228100ff1724e918f3c2a7f52f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <u.h>
#include "x11-inc.h"
#include <libc.h>
#include <draw.h>
#include <memdraw.h>
#include "x11-memdraw.h"

int
unloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
{
	if(i->X)
		_xgetxdata(i, r);
	return _unloadmemimage(i, r, data, ndata);
}