mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
treewide: drop COMPOSITE symbol
It's always enabled for very long time now (at least since meson transition), there doesn't seem to be any need to ever disable it again. So we can reduce code complexity by removing all the ifdef's. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
5
fb/fb.h
5
fb/fb.h
@@ -282,13 +282,8 @@ typedef struct {
|
||||
#define __fbPixDrawableX(pPix) ((pPix)->drawable.x)
|
||||
#define __fbPixDrawableY(pPix) ((pPix)->drawable.y)
|
||||
|
||||
#if defined(COMPOSITE) || defined(ROOTLESS)
|
||||
#define __fbPixOffXWin(pPix) (__fbPixDrawableX(pPix) - (pPix)->screen_x)
|
||||
#define __fbPixOffYWin(pPix) (__fbPixDrawableY(pPix) - (pPix)->screen_y)
|
||||
#else
|
||||
#define __fbPixOffXWin(pPix) (__fbPixDrawableX(pPix))
|
||||
#define __fbPixOffYWin(pPix) (__fbPixDrawableY(pPix))
|
||||
#endif
|
||||
#define __fbPixOffXPix(pPix) (__fbPixDrawableX(pPix))
|
||||
#define __fbPixOffYPix(pPix) (__fbPixDrawableY(pPix))
|
||||
|
||||
|
||||
@@ -80,10 +80,8 @@ fbCreatePixmap(ScreenPtr pScreen, int width, int height, int depth,
|
||||
fbInitializeDrawable(&pPixmap->drawable);
|
||||
#endif
|
||||
|
||||
#if defined(COMPOSITE) || defined(ROOTLESS)
|
||||
pPixmap->screen_x = 0;
|
||||
pPixmap->screen_y = 0;
|
||||
#endif
|
||||
|
||||
pPixmap->usage_hint = usage_hint;
|
||||
|
||||
|
||||
@@ -114,10 +114,8 @@ fbCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||
|
||||
RegionIntersect(&rgnDst, &pWin->borderClip, prgnSrc);
|
||||
|
||||
#if defined(COMPOSITE) || defined(ROOTLESS)
|
||||
if (pPixmap->screen_x || pPixmap->screen_y)
|
||||
RegionTranslate(&rgnDst, -pPixmap->screen_x, -pPixmap->screen_y);
|
||||
#endif
|
||||
|
||||
miCopyRegion(pDrawable, pDrawable,
|
||||
0, &rgnDst, dx, dy, fbCopyWindowProc, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user