aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/x11-unload.c
blob: 2f6241ba9555d97f2a7c9428a40d7d12ff82bc7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);
}