Sign in
plan9port
/
plan9
/
9ca6e21f3d0ea9b9bab8b4661d03d30ed61fd79d
/
.
/
src
/
cmd
/
devdraw
/
x11-pixelbits.c
blob: 5cbdded84267122b86eac07b0ff296456c1691c1 [
file
] [
log
] [
blame
]
#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
);
}