4
* Copyright � 2001 Keith Packard
6
* Partly based on code that is Copyright � The XFree86 Project Inc.
8
* Permission to use, copy, modify, distribute, and sell this software and its
9
* documentation for any purpose is hereby granted without fee, provided that
10
* the above copyright notice appear in all copies and that both that
11
* copyright notice and this permission notice appear in supporting
12
* documentation, and that the name of Keith Packard not be used in
13
* advertising or publicity pertaining to distribution of the software without
14
* specific, written prior permission. Keith Packard makes no
15
* representations about the suitability of this software for any purpose. It
16
* is provided "as is" without express or implied warranty.
18
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
19
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
20
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
21
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
22
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
23
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
* PERFORMANCE OF THIS SOFTWARE.
30
#include "picturestr.h"
32
#define KaaGetScreenPriv(s) ((KaaScreenPrivPtr)(s)->devPrivates[kaaScreenPrivateIndex].ptr)
33
#define KaaScreenPriv(s) KaaScreenPrivPtr pKaaScr = KaaGetScreenPriv(s)
35
#define KaaGetPixmapPriv(p) ((KaaPixmapPrivPtr)(p)->devPrivates[kaaPixmapPrivateIndex].ptr)
36
#define KaaSetPixmapPriv(p,a) ((p)->devPrivates[kaaPixmapPrivateIndex].ptr = (pointer) (a))
37
#define KaaPixmapPriv(p) KaaPixmapPrivPtr pKaaPixmap = KaaGetPixmapPriv(p)
40
KaaScreenInfoPtr info;
41
} KaaScreenPrivRec, *KaaScreenPrivPtr;
44
KdOffscreenArea *area;
49
} KaaPixmapPrivRec, *KaaPixmapPrivPtr;
51
extern int kaaScreenPrivateIndex;
52
extern int kaaPixmapPrivateIndex;
56
kaaPixmapUseScreen (PixmapPtr pPixmap);
59
kaaPixmapUseMemory (PixmapPtr pPixmap);
62
kaaDrawableDirty(DrawablePtr pDrawable);
65
kaaDrawableIsOffscreen (DrawablePtr pDrawable);
68
kaaPixmapIsOffscreen(PixmapPtr p);
71
kaaGetOffscreenPixmap (DrawablePtr pDrawable, int *xp, int *yp);
74
kaaMoveInPixmap (PixmapPtr pPixmap);
77
kaaMarkSync (ScreenPtr pScreen);
80
kaaWaitSync (ScreenPtr pScreen);
83
kaaCopyNtoN (DrawablePtr pSrcDrawable,
84
DrawablePtr pDstDrawable,
96
kaaComposite(CARD8 op,
110
kaaRasterizeTrapezoid(PicturePtr pPict,
116
kaaInitTrapOffsets(int grid_order, float *x_offsets, float *y_offsets,
117
float x_offset, float y_offset);