exa, kdrive: Remove redundant BitsPerPixel macros
We already get this from servermd.h Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
95a5b92e37
commit
645063cd93
|
@ -214,18 +214,6 @@ typedef struct {
|
||||||
DevPrivateKeyRec gcPrivateKeyRec;
|
DevPrivateKeyRec gcPrivateKeyRec;
|
||||||
} ExaScreenPrivRec, *ExaScreenPrivPtr;
|
} ExaScreenPrivRec, *ExaScreenPrivPtr;
|
||||||
|
|
||||||
/*
|
|
||||||
* This is the only completely portable way to
|
|
||||||
* compute this info.
|
|
||||||
*/
|
|
||||||
#ifndef BitsPerPixel
|
|
||||||
#define BitsPerPixel(d) (\
|
|
||||||
PixmapWidthPaddingInfo[d].notPower2 ? \
|
|
||||||
(PixmapWidthPaddingInfo[d].bytesPerPixel * 8) : \
|
|
||||||
((1 << PixmapWidthPaddingInfo[d].padBytesLog2) * 8 / \
|
|
||||||
(PixmapWidthPaddingInfo[d].padRoundUp+1)))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern DevPrivateKeyRec exaScreenPrivateKeyRec;
|
extern DevPrivateKeyRec exaScreenPrivateKeyRec;
|
||||||
|
|
||||||
#define exaScreenPrivateKey (&exaScreenPrivateKeyRec)
|
#define exaScreenPrivateKey (&exaScreenPrivateKeyRec)
|
||||||
|
|
|
@ -330,19 +330,6 @@ typedef struct _KdPointerMatrix {
|
||||||
int matrix[2][3];
|
int matrix[2][3];
|
||||||
} KdPointerMatrix;
|
} KdPointerMatrix;
|
||||||
|
|
||||||
/*
|
|
||||||
* This is the only completely portable way to
|
|
||||||
* compute this info.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef BitsPerPixel
|
|
||||||
#define BitsPerPixel(d) (\
|
|
||||||
PixmapWidthPaddingInfo[d].notPower2 ? \
|
|
||||||
(PixmapWidthPaddingInfo[d].bytesPerPixel * 8) : \
|
|
||||||
((1 << PixmapWidthPaddingInfo[d].padBytesLog2) * 8 / \
|
|
||||||
(PixmapWidthPaddingInfo[d].padRoundUp+1)))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern DevPrivateKeyRec kdScreenPrivateKeyRec;
|
extern DevPrivateKeyRec kdScreenPrivateKeyRec;
|
||||||
|
|
||||||
#define kdScreenPrivateKey (&kdScreenPrivateKeyRec)
|
#define kdScreenPrivateKey (&kdScreenPrivateKeyRec)
|
||||||
|
|
Loading…
Reference in New Issue