On Tue, 30 Apr 2002, Marc Aurele La France wrote:
> On Tue, 30 Apr 2002, Marc Aurele La France wrote:
>
> > On Fri, 26 Apr 2002, Mark Vojkovich wrote:
>
> > > It looks to me like maybe the vid mode extension allows
> > > switching modes while switched away? I had a bug report that
> > > VT switching while playing a certain game (Sid Meier's Alpha
> > > Centauri) that uses the vidmode extension causes the server
> > > to SIGV. This is with the "nv" driver.
>
> > > Should VidModeSwitchMode be doing all this when switched
> > > away?
>
> > Certainly not. There're other things here too, like VidModeSwitchMode()
> > using its own copy of xf86ZoomViewport(), consequently ignoring DGA and
> > such.
>
> > I'll take care of this.
>
> Try the attached.
>
With this patch the application no longer runs. It appears
that it calls XF86VidModeLockModeSwitch to prevent users from
switching modes while in the game, but the application itself
switches modes via the vidMode extension while mode switches
are locked. Before your patch, this was allowed. After your
patch it is not because the xf86SwitchMode function checks
the zoomLocked flag.
I can get the app to run again by saving zoomLocked in
VidModeSwitchMode before calling xf86SwitchMode and then
restoring it afterwards. I don't know if that's the solution
you'd like to see though.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert