diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-06-10 13:21:33 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-06-10 13:21:33 +0000 |
commit | 171e929a08098b6c844887adc43879c7579dc15f (patch) | |
tree | 6b4d2e3bc20dbd4dc9a1f031416e66614c53dd21 /xserver/mi/mispans.h | |
parent | 68781b09de2c95b87ea898c4ecf3018dfb4460d2 (diff) |
Update to xserver 1.12.2. tested by naddy@, krw@, mpi@.
Diffstat (limited to 'xserver/mi/mispans.h')
-rw-r--r-- | xserver/mi/mispans.h | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/xserver/mi/mispans.h b/xserver/mi/mispans.h index c3a3e67ae..f3148ff19 100644 --- a/xserver/mi/mispans.h +++ b/xserver/mi/mispans.h @@ -22,7 +22,6 @@ Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. - Copyright 1989 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved @@ -49,44 +48,40 @@ SOFTWARE. #define MISPANS_H typedef struct { - int count; /* number of spans */ - DDXPointPtr points; /* pointer to list of start points */ - int *widths; /* pointer to list of widths */ + int count; /* number of spans */ + DDXPointPtr points; /* pointer to list of start points */ + int *widths; /* pointer to list of widths */ } Spans; typedef struct { - int size; /* Total number of *Spans allocated */ - int count; /* Number of *Spans actually in group */ - Spans *group; /* List of Spans */ - int ymin, ymax; /* Min, max y values encountered */ + int size; /* Total number of *Spans allocated */ + int count; /* Number of *Spans actually in group */ + Spans *group; /* List of Spans */ + int ymin, ymax; /* Min, max y values encountered */ } SpanGroup; /* Initialize SpanGroup. MUST BE DONE before use. */ -extern _X_EXPORT void miInitSpanGroup( - SpanGroup * /*spanGroup*/ -); +extern _X_EXPORT void miInitSpanGroup(SpanGroup * /*spanGroup */ + ); /* Add a Spans to a SpanGroup. The spans MUST BE in y-sorted order */ -extern _X_EXPORT void miAppendSpans( - SpanGroup * /*spanGroup*/, - SpanGroup * /*otherGroup*/, - Spans * /*spans*/ -); +extern _X_EXPORT void miAppendSpans(SpanGroup * /*spanGroup */ , + SpanGroup * /*otherGroup */ , + Spans * /*spans */ + ); /* Paint a span group, insuring that each pixel is painted at most once */ -extern _X_EXPORT void miFillUniqueSpanGroup( - DrawablePtr /*pDraw*/, - GCPtr /*pGC*/, - SpanGroup * /*spanGroup*/ -); +extern _X_EXPORT void miFillUniqueSpanGroup(DrawablePtr /*pDraw */ , + GCPtr /*pGC */ , + SpanGroup * /*spanGroup */ + ); /* Free up data in a span group. MUST BE DONE or you'll suffer memory leaks */ -extern _X_EXPORT void miFreeSpanGroup( - SpanGroup * /*spanGroup*/ -); +extern _X_EXPORT void miFreeSpanGroup(SpanGroup * /*spanGroup */ + ); /* Rops which must use span groups */ #define miSpansCarefulRop(rop) (((rop) & 0xc) == 0x8 || ((rop) & 0x3) == 0x2) #define miSpansEasyRop(rop) (!miSpansCarefulRop(rop)) -#endif /* MISPANS_H */ +#endif /* MISPANS_H */ |