summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2006-02-16 07:17:31 +0000
committerKeith Packard <keithp@keithp.com>2006-02-16 07:17:31 +0000
commit8987b2c1efc9a4667e278e6ba411772ba2a4a4e6 (patch)
treeeb7aa732b0f74c958770e26717679c8e893449bc /miext
parentc8acb342695936db062c966029019a458d45459e (diff)
downloadxserver-8987b2c1efc9a4667e278e6ba411772ba2a4a4e6.tar.gz
Make more extensions optional in build (for kdrive). Fix kdrive build for
actual hardware. Fix kdrive pointer signed/unsigned types. Add kdrive-required YX rotation functions. Replace rgb text file loading with static rgb color table.
Diffstat (limited to 'miext')
-rwxr-xr-xmiext/damage/damage.c2
-rw-r--r--miext/shadow/Makefile.am5
-rw-r--r--miext/shadow/shadow.h12
-rw-r--r--miext/shadow/shrot16pack_270YX.c33
-rw-r--r--miext/shadow/shrot16pack_90YX.c33
5 files changed, 84 insertions, 1 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index 5203d42b3..54f168039 100755
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -1773,6 +1773,7 @@ DamageSetup (ScreenPtr pScreen)
if (!pScrPriv)
return FALSE;
+#ifdef XFree86Server
#ifdef COMPOSITE
/* This is a kludge to ensure wrapping order with the composite wrapper.
* If it's done from compinit.c, then DamageSetup may be called before the
@@ -1782,6 +1783,7 @@ DamageSetup (ScreenPtr pScreen)
if (!noCompositeExtension)
miInitializeCompositeWrapper (pScreen);
#endif
+#endif
pScrPriv->internalLevel = 0;
pScrPriv->pScreenDamage = 0;
diff --git a/miext/shadow/Makefile.am b/miext/shadow/Makefile.am
index 9490530e3..1426c033e 100644
--- a/miext/shadow/Makefile.am
+++ b/miext/shadow/Makefile.am
@@ -17,7 +17,9 @@ libshadow_la_SOURCES = \
shplanar.c \
shrot16pack_180.c \
shrot16pack_270.c \
+ shrot16pack_270YX.c \
shrot16pack_90.c \
+ shrot16pack_90YX.c \
shrot16pack.c \
shrot32pack_180.c \
shrot32pack_270.c \
@@ -28,4 +30,5 @@ libshadow_la_SOURCES = \
shrot8pack_90.c \
shrot8pack.c \
shrotate.c \
- shrotpack.h
+ shrotpack.h \
+ shrotpackYX.h
diff --git a/miext/shadow/shadow.h b/miext/shadow/shadow.h
index 2b51f2c82..5f4f8ccbe 100644
--- a/miext/shadow/shadow.h
+++ b/miext/shadow/shadow.h
@@ -129,6 +129,10 @@ shadowUpdateRotate16_90 (ScreenPtr pScreen,
shadowBufPtr pBuf);
void
+shadowUpdateRotate16_90YX (ScreenPtr pScreen,
+ shadowBufPtr pBuf);
+
+void
shadowUpdateRotate32_90 (ScreenPtr pScreen,
shadowBufPtr pBuf);
@@ -153,9 +157,17 @@ shadowUpdateRotate16_270 (ScreenPtr pScreen,
shadowBufPtr pBuf);
void
+shadowUpdateRotate16_270YX (ScreenPtr pScreen,
+ shadowBufPtr pBuf);
+
+void
shadowUpdateRotate32_270 (ScreenPtr pScreen,
shadowBufPtr pBuf);
+void
+shadowUpdateRotate16 (ScreenPtr pScreen,
+ shadowBufPtr pBuf);
+
typedef void (* shadowUpdateProc)(ScreenPtr, shadowBufPtr);
shadowUpdateProc shadowUpdatePackedWeak(void);
diff --git a/miext/shadow/shrot16pack_270YX.c b/miext/shadow/shrot16pack_270YX.c
new file mode 100644
index 000000000..3a3dfa8a3
--- /dev/null
+++ b/miext/shadow/shrot16pack_270YX.c
@@ -0,0 +1,33 @@
+/*
+ * $Id$
+ *
+ * Copyright 2000 Keith Packard
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#define FUNC shadowUpdateRotate16_270YX
+#define Data CARD16
+#define ROTATE 270
+
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
+#include "shrotpackYX.h"
diff --git a/miext/shadow/shrot16pack_90YX.c b/miext/shadow/shrot16pack_90YX.c
new file mode 100644
index 000000000..2eb721581
--- /dev/null
+++ b/miext/shadow/shrot16pack_90YX.c
@@ -0,0 +1,33 @@
+/*
+ * $Id$
+ *
+ * Copyright 2000 Keith Packard
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#define FUNC shadowUpdateRotate16_90YX
+#define Data CARD16
+#define ROTATE 90
+
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
+#include "shrotpackYX.h"