fb: Make rootless-agnostic
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit 315661a425
)
This commit is contained in:
parent
b46ff18b24
commit
9e744ac376
5
fb/fb.h
5
fb/fb.h
|
@ -472,13 +472,8 @@ typedef struct {
|
|||
#define fbGetWindowPixmap(pWin) ((PixmapPtr)\
|
||||
dixLookupPrivate(&((WindowPtr)(pWin))->devPrivates, fbGetWinPrivateKey(pWin)))
|
||||
|
||||
#ifdef ROOTLESS
|
||||
#define __fbPixDrawableX(pPix) ((pPix)->drawable.x)
|
||||
#define __fbPixDrawableY(pPix) ((pPix)->drawable.y)
|
||||
#else
|
||||
#define __fbPixDrawableX(pPix) 0
|
||||
#define __fbPixDrawableY(pPix) 0
|
||||
#endif
|
||||
|
||||
#ifdef COMPOSITE
|
||||
#define __fbPixOffXWin(pPix) (__fbPixDrawableX(pPix) - (pPix)->screen_x)
|
||||
|
|
Loading…
Reference in New Issue