summaryrefslogtreecommitdiff
path: root/driver/xf86-video-tseng/src
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-03-07 10:32:18 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-03-07 10:32:18 +0000
commit1c1bdab01b2e9e3e02324284d5c250b1c284c844 (patch)
treea61b62e2ba43f1b7ef0c6a5df6c2f6158a4fbf7e /driver/xf86-video-tseng/src
parentb4c87ecb2a07787d3c851d9371c471153e9ccc4b (diff)
update to xf86-video-tseng 1.2.1
Diffstat (limited to 'driver/xf86-video-tseng/src')
-rw-r--r--driver/xf86-video-tseng/src/tseng.h3
-rw-r--r--driver/xf86-video-tseng/src/tseng_driver.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/driver/xf86-video-tseng/src/tseng.h b/driver/xf86-video-tseng/src/tseng.h
index 6af1185d1..fbb0fd31c 100644
--- a/driver/xf86-video-tseng/src/tseng.h
+++ b/driver/xf86-video-tseng/src/tseng.h
@@ -15,9 +15,6 @@
/* Everything using inb/outb, etc needs "compiler.h" */
#include "compiler.h"
-/* This is used for module versioning */
-#include "xf86Version.h"
-
/* Drivers for PCI hardware need this */
#include "xf86PciInfo.h"
diff --git a/driver/xf86-video-tseng/src/tseng_driver.c b/driver/xf86-video-tseng/src/tseng_driver.c
index 67cc23171..46fc3aed8 100644
--- a/driver/xf86-video-tseng/src/tseng_driver.c
+++ b/driver/xf86-video-tseng/src/tseng_driver.c
@@ -1453,18 +1453,22 @@ TsengScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
*/
switch (pScrn->bitsPerPixel) {
+#if HAVE_XF1BPP
case 1:
ret = xf1bppScreenInit(pScreen, pTseng->FbBase,
pScrn->virtualX, pScrn->virtualY,
pScrn->xDpi, pScrn->yDpi,
pScrn->displayWidth);
break;
+#endif
+#if HAVE_XF4BPP
case 4:
ret = xf4bppScreenInit(pScreen, pTseng->FbBase,
pScrn->virtualX, pScrn->virtualY,
pScrn->xDpi, pScrn->yDpi,
pScrn->displayWidth);
break;
+#endif
default:
ret = fbScreenInit(pScreen, pTseng->FbBase,
pScrn->virtualX, pScrn->virtualY,
@@ -1493,8 +1497,10 @@ TsengScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
}
}
+#if HAVE_XF1BPP
/* must be after RGB ordering fixed */
if (pScrn->bitsPerPixel > 4)
+#endif
fbPictureInit(pScreen, 0, 0);
if (pScrn->depth >= 8)