diff options
author | Adam Jackson <ajax@redhat.com> | 2014-03-04 12:51:49 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2014-10-08 10:10:39 +0200 |
commit | 645063cd9384a26353775e92a79ed8710c6ca66c (patch) | |
tree | d40601f649b435e1fb635bb25da552ca7ca3803f /exa | |
parent | 95a5b92e37f73f497d547fd91c543c16d2cc73de (diff) |
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>
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa_priv.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/exa/exa_priv.h b/exa/exa_priv.h index 61a1f4ccb..88bfd3772 100644 --- a/exa/exa_priv.h +++ b/exa/exa_priv.h @@ -214,18 +214,6 @@ typedef struct { DevPrivateKeyRec gcPrivateKeyRec; } 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; #define exaScreenPrivateKey (&exaScreenPrivateKeyRec) |