mi: miline.h: unexport only locally used macros
These macros are only used in one source file, so move them there. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1726>
This commit is contained in:
parent
36dd28129b
commit
c06d9da5b6
13
mi/miline.h
13
mi/miline.h
|
@ -106,14 +106,6 @@ extern _X_EXPORT void miSetZeroLineBias(ScreenPtr /* pScreen */ ,
|
||||||
if (y > ymax) outcode |= OUT_BELOW;\
|
if (y > ymax) outcode |= OUT_BELOW;\
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SWAPINT(i, j) \
|
|
||||||
{ int _t = i; i = j; j = _t; }
|
|
||||||
|
|
||||||
#define SWAPINT_PAIR(x1, y1, x2, y2)\
|
|
||||||
{ int t = x1; x1 = x2; x2 = t;\
|
|
||||||
t = y1; y1 = y2; y2 = t;\
|
|
||||||
}
|
|
||||||
|
|
||||||
#define miGetZeroLineBias(_pScreen) ((unsigned long) (unsigned long*)\
|
#define miGetZeroLineBias(_pScreen) ((unsigned long) (unsigned long*)\
|
||||||
dixLookupPrivate(&(_pScreen)->devPrivates, miZeroLineScreenKey))
|
dixLookupPrivate(&(_pScreen)->devPrivates, miZeroLineScreenKey))
|
||||||
|
|
||||||
|
@ -137,11 +129,6 @@ extern _X_EXPORT void miSetZeroLineBias(ScreenPtr /* pScreen */ ,
|
||||||
#define FIXUP_ERROR(_e, _octant, _bias) \
|
#define FIXUP_ERROR(_e, _octant, _bias) \
|
||||||
(_e) -= (((_bias) >> (_octant)) & 1)
|
(_e) -= (((_bias) >> (_octant)) & 1)
|
||||||
|
|
||||||
#define IsXMajorOctant(_octant) (!((_octant) & YMAJOR))
|
|
||||||
#define IsYMajorOctant(_octant) ((_octant) & YMAJOR)
|
|
||||||
#define IsXDecreasingOctant(_octant) ((_octant) & XDECREASING)
|
|
||||||
#define IsYDecreasingOctant(_octant) ((_octant) & YDECREASING)
|
|
||||||
|
|
||||||
extern _X_EXPORT DevPrivateKeyRec miZeroLineScreenKeyRec;
|
extern _X_EXPORT DevPrivateKeyRec miZeroLineScreenKeyRec;
|
||||||
|
|
||||||
#define miZeroLineScreenKey (&miZeroLineScreenKeyRec)
|
#define miZeroLineScreenKey (&miZeroLineScreenKeyRec)
|
||||||
|
|
|
@ -395,6 +395,19 @@ the numerator is therefore (2^32 - 1), which does not overflow an unsigned
|
||||||
#define EQN8 (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY)
|
#define EQN8 (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY)
|
||||||
#define EQN8B (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY)
|
#define EQN8B (T_2NDX | T_ADDDY | T_BIASSUBONE | T_DIV2DY)
|
||||||
|
|
||||||
|
#define SWAPINT(i, j) \
|
||||||
|
{ int _t = i; i = j; j = _t; }
|
||||||
|
|
||||||
|
#define SWAPINT_PAIR(x1, y1, x2, y2)\
|
||||||
|
{ int t = x1; x1 = x2; x2 = t;\
|
||||||
|
t = y1; y1 = y2; y2 = t;\
|
||||||
|
}
|
||||||
|
|
||||||
|
#define IsXMajorOctant(_octant) (!((_octant) & YMAJOR))
|
||||||
|
#define IsYMajorOctant(_octant) ((_octant) & YMAJOR)
|
||||||
|
#define IsXDecreasingOctant(_octant) ((_octant) & XDECREASING)
|
||||||
|
#define IsYDecreasingOctant(_octant) ((_octant) & YDECREASING)
|
||||||
|
|
||||||
/* miZeroClipLine
|
/* miZeroClipLine
|
||||||
*
|
*
|
||||||
* returns: 1 for partially clipped line
|
* returns: 1 for partially clipped line
|
||||||
|
|
Loading…
Reference in New Issue