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

#include <u.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);
}