aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/x11-pixelbits.c
blob: 5227f39b5c8a03bb0f2d1896ee96566d6a2634e5 (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"

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);
}