On Fri, 22 Feb 2002, Jeremy Sugerman wrote:
> In article <[EMAIL PROTECTED]> you write:
> > You can change modes through the XFree86-VidModeExtension.
> >See the man page on XF86VidModeSwitchMode and friends.
> >Quake3, for instance, uses this to go full screen.
>
> I've been wondering (and this seems as good a place as any to tack it on)
> how exactly an application 'goes to full screen'. One clear tactic is to
> use DGA. One other, which appears to be what xine does, is to create a
> normal window, but go to extreme (window manager specific) lengths to make
> sure it's undecorated, then use VidMode to change resolutions and put the
> viewport over the unornamented window. I wasn't completely able to piece
> together how xlockmore did it from its code. I've seen suggestions that Xv
> can also be used for some form of fullscreen mode, but nothing obvious in
> the code suggested itself to me. Does it generally come down to 'create an
> unornamented window and use VidMode'? Is there a good way to create an
> unornamented window? I suppose creating a large toplevel window with a
> black background and then using VidMode to only display a subwindow would
> work.
>
Create a window with override_redirect equal to True. That window
should be a size available through the VidMode extension. Use the
VidMode extension to set the viewport to that size and to zoom in
on the window. Note that hardware can't always move the viewport to
pixel granularity so it's best that the window get placed at 0,0.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert