This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: miSprite Solution (?) Re: [ANNOUNCEMENT] Overlay and No DirectInput Test 4



John,

I forwarded a copy of your following mail to devel@xfree86.org.  Let's see
what one of the
main developer over there suggests.

Suhaib


> -----Original Message-----
> From: John Fortin [mailto:fortinj@attglobal.net]
> Sent: Wednesday, November 08, 2000 10:20 PM
> Cc: cygwin-xfree@sources.redhat.com
> Subject: miSprite Solution (?) Re: [ANNOUNCEMENT] Overlay and No
> DirectInput Test 4
>
>
> Suhaib and Harold,
>
> I tracked down the 'bug' for the misprite problems.
>
> in
> miSpriteInitialize there is the following:
>
>    #ifdef RENDER
>        PictureScreenPtr    ps = GetPictureScreen(pScreen);
>    #endif
>
> where GetPictureScreen is defined as:
>
>    #define GetPictureScreen(s)
> ((PictureScreenPtr)((s)->devPrivates[PictureScreenPrivateIndex].ptr))
>
>
> ^
> I believe the problem is
> here-----------------------------------------------^
>
> PictureScreenPrivateIndex is never defined.
>
> The place it is initialized is in render/picture.c:PictureInit().
>       PictureScreenPrivateIndex = AllocateScreenPrivateIndex();
>
> This is called by mipict.c:miPictureInit()
> miPictureInit() is never used anywhere.
>
> So when 'ps = GetPictureScreen(pScreen);' is called, ps points to
> garbage.
>
> However, if we undef RENDER, all the problems go away.
>
> So, do we undef RENDER?  What is its purpose... Or notify someone that
> the render function are broken.
>
> John
>
>
> Harold Hunt wrote:
> >
> > Oh, I notice that you mention the miSprite... functions.
> That's probably
> > due to the XFree86 build that I used to build XWin.exe -
> some patches to the
> > tree a couple weeks ago caused a crash on startup of
> XWin.exe, I tracked the
> > problem down to two pointers in one of the miSprite files,
> and I basically
> > commented out enough of the cruft to get the crashes to
> stop.  I'm sure that
> > there have been patches to the tree since then that fix the problem
> > correctly, but I haven't updated my tree in awhile.
> >
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]