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

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

u32int
pixelbits(Memimage *m, Point p)
{
	if(m->X)
		xgetxdata(m, Rect(p.x, p.y, p.x+1, p.y+1));
	return _pixelbits(m, p);
}