diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-07-18 15:38:10 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2008-07-21 03:50:15 +0300 |
commit | 6b5206e7cb8e5279816b48f014d47d3f03f16972 (patch) | |
tree | 02edb17f075ffc652b7925aaada6194c0f4c77d6 | |
parent | 66fb253082ea42179180303393e48846208987fa (diff) |
dix: Remove insane BC hacks
If your DDX needs a 1bpp mode and doesn't set it up, your DDX is
incompetent.
-rw-r--r-- | dix/main.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/dix/main.c b/dix/main.c index 2e54030f2..ab6ca5728 100644 --- a/dix/main.c +++ b/dix/main.c @@ -240,7 +240,7 @@ int dix_main(int argc, char *argv[], char *envp[]) int main(int argc, char *argv[], char *envp[]) #endif { - int i, j, k; + int i; char *xauthfile; HWEventQueueType alwaysCheckForInput[2]; @@ -309,17 +309,6 @@ int main(int argc, char *argv[], char *envp[]) if (!WindowTable) FatalError("couldn't create root window table"); - /* - * Just in case the ddx doesnt supply a format for depth 1 (like qvss). - */ - j = indexForBitsPerPixel[ 1 ]; - k = indexForScanlinePad[ BITMAP_SCANLINE_PAD ]; - PixmapWidthPaddingInfo[1].padRoundUp = BITMAP_SCANLINE_PAD-1; - PixmapWidthPaddingInfo[1].padPixelsLog2 = answer[j][k]; - j = indexForBitsPerPixel[8]; /* bits per byte */ - PixmapWidthPaddingInfo[1].padBytesLog2 = answer[j][k]; - PixmapWidthPaddingInfo[1].bitsPerPixel = 1; - InitAtoms(); InitEvents(); InitSelections(); |