1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#ifndef IMPED_H
#define IMPED_H
/*
* XFree86 empties the root BorderClip when the VT is inactive,
* here's a macro which uses that to disable GetImage and GetSpans
*/
#define impedWindowEnabled(pWin) \
RegionNotEmpty(&(pWin)->drawable.pScreen->root->borderClip)
#define impedDrawableEnabled(pDrawable) \
((pDrawable)->type == DRAWABLE_PIXMAP ? \
TRUE : impedWindowEnabled((WindowPtr) pDrawable))
static inline void impedGetDrawableDeltas(DrawablePtr pDrawable, ProtoPixmapPtr pPixmap,
int *x_off, int *y_off)
{
*x_off = pDrawable->x;
*y_off = pDrawable->y;
#ifdef COMPOSITE
if (pDrawable->type == DRAWABLE_WINDOW) {
*x_off -= pPixmap->screen_x;
*y_off -= pPixmap->screen_x;
}
#endif
}
extern _X_EXPORT void impedSetGCOps(GCPtr pGC);
extern _X_EXPORT Bool impedScreenInit(ScreenPtr pScreen);
extern _X_EXPORT void
impedCopyNtoN (DrawablePtr pSrcDrawable,
DrawablePtr pDstDrawable,
GCPtr pGC,
BoxPtr pbox,
int nbox,
int dx,
int dy,
Bool reverse,
Bool upsidedown,
Pixel bitplane,
void *closure);
extern _X_EXPORT Bool impedCreateGC(GCPtr pGC);
extern _X_EXPORT void impedScreenSetPixmapSize(ScreenPtr pScreen);
#endif
|