On Sat, 21 Sep 2002, J. Imlay wrote:

> 
> Where is the actual framebuffer for a screen stored? Shouldn't it be in a
> PixmapPtr's devPrivates or so? The basic problem I'm having is that none
> of the members of the screen struct, point to anything like a framebuffer.
> 
> Where is the actual framebuffer to a screen stored?
> 

   The ScreenRec is a device independent structure, and as such holds
no such information.  Anything having to do with actually buffers
are in the DDX.  It doesn't really make sense to refer to *the* framebuffer
of a screen, because that is a device specific detail that isn't even
accurate for some of the devices that XFree86 supports.  When overlays
are used, the screen may be implemented as multiple buffers - one for
each layer.

   XFree86 does have a pScreen->GetScreenPixmap which will return a
"Pixmap" of the root window.  If fb is your underlying framebuffer this
will have a devPrivate and devKind indicating the raw pointer and
stride of the root window, like a normal pixmap would have.


                                Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to