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/miline.h | |
parent | 68781b09de2c95b87ea898c4ecf3018dfb4460d2 (diff) |
Update to xserver 1.12.2. tested by naddy@, krw@, mpi@.
Diffstat (limited to 'xserver/mi/miline.h')
-rw-r--r-- | xserver/mi/miline.h | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/xserver/mi/miline.h b/xserver/mi/miline.h index ae9d113d1..c1a51c15c 100644 --- a/xserver/mi/miline.h +++ b/xserver/mi/miline.h @@ -77,10 +77,9 @@ in this Software without prior written authorization from The Open Group. * Jack E. Bresenham, IEEE CG&A, May 1987. */ -extern _X_EXPORT void miSetZeroLineBias( - ScreenPtr /* pScreen */, - unsigned int /* bias */ -); +extern _X_EXPORT void miSetZeroLineBias(ScreenPtr /* pScreen */ , + unsigned int /* bias */ + ); /* * Private definitions needed for drawing thin (zero width) lines @@ -108,7 +107,7 @@ extern _X_EXPORT void miSetZeroLineBias( if (y < ymin) outcode |= OUT_ABOVE;\ if (y > ymax) outcode |= OUT_BELOW;\ } - + #define SWAPINT(i, j) \ { int _t = i; i = j; j = _t; } @@ -149,25 +148,25 @@ extern _X_EXPORT void miSetZeroLineBias( #define IsYDecreasingOctant(_octant) ((_octant) & YDECREASING) extern _X_EXPORT DevPrivateKeyRec miZeroLineScreenKeyRec; + #define miZeroLineScreenKey (&miZeroLineScreenKeyRec) -extern _X_EXPORT int miZeroClipLine( - int /*xmin*/, - int /*ymin*/, - int /*xmax*/, - int /*ymax*/, - int * /*new_x1*/, - int * /*new_y1*/, - int * /*new_x2*/, - int * /*new_y2*/, - unsigned int /*adx*/, - unsigned int /*ady*/, - int * /*pt1_clipped*/, - int * /*pt2_clipped*/, - int /*octant*/, - unsigned int /*bias*/, - int /*oc1*/, - int /*oc2*/ -); - -#endif /* MILINE_H */ +extern _X_EXPORT int miZeroClipLine(int /*xmin */ , + int /*ymin */ , + int /*xmax */ , + int /*ymax */ , + int * /*new_x1 */ , + int * /*new_y1 */ , + int * /*new_x2 */ , + int * /*new_y2 */ , + unsigned int /*adx */ , + unsigned int /*ady */ , + int * /*pt1_clipped */ , + int * /*pt2_clipped */ , + int /*octant */ , + unsigned int /*bias */ , + int /*oc1 */ , + int /*oc2 */ + ); + +#endif /* MILINE_H */ |