This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: winlayer.c fails to build
- Subject: RE: winlayer.c fails to build
- From: Alexander Gottwald <Alexander dot Gottwald at informatik dot tu-chemnitz dot de>
- Date: Tue, 31 Jul 2001 18:23:50 +0200 (MEST)
- Cc: cygx <cygwin-xfree at cygwin dot com>
On Mon, 30 Jul 2001, Harold Hunt wrote:
> Alexander,
>
> > - let LayerStartInit initialize the fb screen.
> > server start - close cycle worked for engine 1,2 and 4.
> > Engine 8 failed with winAllocateFBPrimaryDD-Could not lock
> > primary surface
> > But it also does with the fb layer initialization commented out
>
> That method sounds perfect. Engine 8 has been unsupported and broken for
> some time. Can you send me a patch to submit?
Attached.
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org
phone: +49 3725 3498080 mobile: +49 172 7854017
Index: layerinit.c
===================================================================
RCS file: /cvs/xc/programs/Xserver/miext/layer/layerinit.c,v
retrieving revision 1.3
diff -U3 -r1.3 layerinit.c
--- layerinit.c 2001/07/20 19:25:01 1.3
+++ layerinit.c 2001/07/29 19:45:23
@@ -66,6 +66,7 @@
pScrPriv->kinds = 0;
pScrPriv->pLayers = 0;
pScreen->devPrivates[layerScrPrivateIndex].ptr = (pointer) pScrPriv;
+#if !defined(__CYGWIN__)
/*
* Add fb kind -- always 0
*/
@@ -75,11 +76,15 @@
xfree (pScrPriv);
return FALSE;
}
+#endif
+
/*
* Add shadow kind -- always 1
*/
+#if !defined(__CYGWIN__)
if (!shadowSetup (pScreen))
return FALSE;
+#endif
if (LayerNewKind (pScreen) < 0)
{
pScreen->devPrivates[layerScrPrivateIndex].ptr = 0;