mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
Merge branch 'master' into XACE-SELINUX
Conflicts: afb/afbpntwin.c afb/afbscrinit.c afb/afbwindow.c cfb/cfb.h cfb/cfballpriv.c cfb/cfbscrinit.c cfb/cfbwindow.c configure.ac fb/wfbrename.h hw/xfree86/xf4bpp/ppcIO.c hw/xfree86/xf4bpp/ppcPntWin.c hw/xfree86/xf4bpp/ppcWindow.c hw/xfree86/xf8_32bpp/cfbscrinit.c mfb/mfb.h mfb/mfbpntwin.c mfb/mfbscrinit.c mfb/mfbwindow.c mi/miexpose.c Note: conflicts caused by devPrivates rework vs. paintwindow changes.
This commit is contained in:
commit
97c150b61b
205 changed files with 1899 additions and 8248 deletions
4
fb/fb.h
4
fb/fb.h
|
|
@ -2091,10 +2091,6 @@ fbFillRegionTiled (DrawablePtr pDrawable,
|
|||
RegionPtr pRegion,
|
||||
PixmapPtr pTile);
|
||||
|
||||
void
|
||||
fbPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what);
|
||||
|
||||
|
||||
pixman_image_t *image_from_pict (PicturePtr pict,
|
||||
Bool has_clip);
|
||||
void free_pixman_pict (PicturePtr, pixman_image_t *);
|
||||
|
|
|
|||
|
|
@ -277,16 +277,6 @@ fbOverlayWindowExposures (WindowPtr pWin,
|
|||
miWindowExposures(pWin, prgn, other_exposed);
|
||||
}
|
||||
|
||||
void
|
||||
fbOverlayPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
|
||||
{
|
||||
if (what == PW_BORDER)
|
||||
fbOverlayUpdateLayerRegion (pWin->drawable.pScreen,
|
||||
fbOverlayWindowLayer (pWin),
|
||||
pRegion);
|
||||
fbPaintWindow (pWin, pRegion, what);
|
||||
}
|
||||
|
||||
Bool
|
||||
fbOverlaySetupScreen(ScreenPtr pScreen,
|
||||
pointer pbits1,
|
||||
|
|
@ -434,7 +424,6 @@ fbOverlayFinishScreenInit(ScreenPtr pScreen,
|
|||
pScreen->CreateWindow = fbOverlayCreateWindow;
|
||||
pScreen->WindowExposures = fbOverlayWindowExposures;
|
||||
pScreen->CopyWindow = fbOverlayCopyWindow;
|
||||
pScreen->PaintWindowBorder = fbOverlayPaintWindow;
|
||||
#ifdef FB_24_32BIT
|
||||
if (bpp == 24 && imagebpp == 32)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -92,10 +92,6 @@ fbOverlayWindowExposures (WindowPtr pWin,
|
|||
RegionPtr prgn,
|
||||
RegionPtr other_exposed);
|
||||
|
||||
void
|
||||
fbOverlayPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what);
|
||||
|
||||
|
||||
Bool
|
||||
fbOverlaySetupScreen(ScreenPtr pScreen,
|
||||
pointer pbits1,
|
||||
|
|
|
|||
|
|
@ -94,8 +94,6 @@ typedef struct {
|
|||
CreateScreenResourcesProcPtr CreateScreenResources;
|
||||
CreateWindowProcPtr CreateWindow;
|
||||
CopyWindowProcPtr CopyWindow;
|
||||
PaintWindowProcPtr PaintWindowBackground;
|
||||
PaintWindowProcPtr PaintWindowBorder;
|
||||
WindowExposuresProcPtr WindowExposures;
|
||||
CreateGCProcPtr CreateGC;
|
||||
CreateColormapProcPtr CreateColormap;
|
||||
|
|
@ -786,70 +784,6 @@ xxWindowExposures (WindowPtr pWin,
|
|||
wrap(pScrPriv, pWin->drawable.pScreen, WindowExposures, xxWindowExposures);
|
||||
}
|
||||
|
||||
static void
|
||||
xxPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
|
||||
{
|
||||
xxScrPriv(pWin->drawable.pScreen);
|
||||
RegionRec rgni;
|
||||
|
||||
DBG("xxPaintWindow\n");
|
||||
|
||||
REGION_NULL (pWin->drawable.pScreen, &rgni);
|
||||
#if 0
|
||||
REGION_UNION (pWin->drawable.pScreen, &rgni, &rgni, &pWin->borderClip);
|
||||
REGION_INTERSECT(pWin->drawable.pScreen, &rgni, &rgni, pRegion);
|
||||
#else
|
||||
REGION_UNION (pWin->drawable.pScreen, &rgni, &rgni, pRegion);
|
||||
#endif
|
||||
switch (what) {
|
||||
case PW_BORDER:
|
||||
REGION_SUBTRACT (pWin->drawable.pScreen, &rgni, &rgni, &pWin->winSize);
|
||||
if (fbGetWindowPixmap(pWin) == pScrPriv->pPixmap) {
|
||||
DBG("PaintWindowBorder\n");
|
||||
REGION_UNION (pWin->drawable.pScreen, &pScrPriv->region,
|
||||
&pScrPriv->region, &rgni);
|
||||
} else {
|
||||
DBG("PaintWindowBorder NoOverlay\n");
|
||||
REGION_SUBTRACT (pWin->drawable.pScreen, &pScrPriv->region,
|
||||
&pScrPriv->region, &rgni);
|
||||
}
|
||||
unwrap (pScrPriv, pWin->drawable.pScreen, PaintWindowBorder);
|
||||
pWin->drawable.pScreen->PaintWindowBorder (pWin, pRegion, what);
|
||||
wrap(pScrPriv, pWin->drawable.pScreen, PaintWindowBorder,
|
||||
xxPaintWindow);
|
||||
break;
|
||||
case PW_BACKGROUND:
|
||||
switch (pWin->backgroundState) {
|
||||
case None:
|
||||
break;
|
||||
default:
|
||||
REGION_INTERSECT (pWin->drawable.pScreen, &rgni,
|
||||
&rgni,&pWin->winSize);
|
||||
if (fbGetWindowPixmap(pWin) == pScrPriv->pPixmap) {
|
||||
DBG("PaintWindowBackground\n");
|
||||
REGION_UNION (pWin->drawable.pScreen, &pScrPriv->region,
|
||||
&pScrPriv->region, &rgni);
|
||||
} else {
|
||||
DBG("PaintWindowBackground NoOverlay\n");
|
||||
REGION_SUBTRACT (pWin->drawable.pScreen, &pScrPriv->region,
|
||||
&pScrPriv->region, &rgni);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
unwrap (pScrPriv, pWin->drawable.pScreen, PaintWindowBackground);
|
||||
pWin->drawable.pScreen->PaintWindowBackground (pWin, pRegion, what);
|
||||
wrap(pScrPriv, pWin->drawable.pScreen, PaintWindowBackground,
|
||||
xxPaintWindow);
|
||||
break;
|
||||
}
|
||||
PRINT_RECTS(rgni);
|
||||
PRINT_RECTS(pScrPriv->region);
|
||||
#if 1
|
||||
REGION_UNINIT(pWin->drawable.pScreen,&rgni);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
xxCopyPseudocolorRegion(ScreenPtr pScreen, RegionPtr pReg,
|
||||
xxCmapPrivPtr pCmapPriv)
|
||||
|
|
@ -1149,8 +1083,6 @@ xxSetup(ScreenPtr pScreen, int myDepth, int baseDepth, char* addr, xxSyncFunc sy
|
|||
wrap (pScrPriv, pScreen, CreateScreenResources, xxCreateScreenResources);
|
||||
wrap (pScrPriv, pScreen, CreateWindow, xxCreateWindow);
|
||||
wrap (pScrPriv, pScreen, CopyWindow, xxCopyWindow);
|
||||
wrap (pScrPriv, pScreen, PaintWindowBorder, xxPaintWindow);
|
||||
wrap (pScrPriv, pScreen, PaintWindowBackground, xxPaintWindow);
|
||||
#if 0 /* can we leave this out even with backing store enabled ? */
|
||||
wrap (pScrPriv, pScreen, WindowExposures, xxWindowExposures);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -122,8 +122,6 @@ fbSetupScreen(ScreenPtr pScreen,
|
|||
pScreen->ChangeWindowAttributes = fbChangeWindowAttributes;
|
||||
pScreen->RealizeWindow = fbMapWindow;
|
||||
pScreen->UnrealizeWindow = fbUnmapWindow;
|
||||
pScreen->PaintWindowBackground = fbPaintWindow;
|
||||
pScreen->PaintWindowBorder = fbPaintWindow;
|
||||
pScreen->CopyWindow = fbCopyWindow;
|
||||
pScreen->CreatePixmap = fbCreatePixmap;
|
||||
pScreen->DestroyPixmap = fbDestroyPixmap;
|
||||
|
|
|
|||
|
|
@ -315,58 +315,3 @@ fbFillRegionTiled (DrawablePtr pDrawable,
|
|||
fbFinishAccess (&pTile->drawable);
|
||||
fbFinishAccess (pDrawable);
|
||||
}
|
||||
|
||||
void
|
||||
fbPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
|
||||
{
|
||||
WindowPtr pBgWin;
|
||||
|
||||
switch (what) {
|
||||
case PW_BACKGROUND:
|
||||
switch (pWin->backgroundState) {
|
||||
case None:
|
||||
break;
|
||||
case ParentRelative:
|
||||
do {
|
||||
pWin = pWin->parent;
|
||||
} while (pWin->backgroundState == ParentRelative);
|
||||
(*pWin->drawable.pScreen->PaintWindowBackground)(pWin, pRegion,
|
||||
what);
|
||||
break;
|
||||
case BackgroundPixmap:
|
||||
fbFillRegionTiled (&pWin->drawable,
|
||||
pRegion,
|
||||
pWin->background.pixmap);
|
||||
break;
|
||||
case BackgroundPixel:
|
||||
fbFillRegionSolid (&pWin->drawable,
|
||||
pRegion,
|
||||
0,
|
||||
fbReplicatePixel (pWin->background.pixel,
|
||||
pWin->drawable.bitsPerPixel));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PW_BORDER:
|
||||
if (pWin->borderIsPixel)
|
||||
{
|
||||
fbFillRegionSolid (&pWin->drawable,
|
||||
pRegion,
|
||||
0,
|
||||
fbReplicatePixel (pWin->border.pixel,
|
||||
pWin->drawable.bitsPerPixel));
|
||||
}
|
||||
else
|
||||
{
|
||||
for (pBgWin = pWin;
|
||||
pBgWin->backgroundState == ParentRelative;
|
||||
pBgWin = pBgWin->parent);
|
||||
|
||||
fbFillRegionTiled (&pBgWin->drawable,
|
||||
pRegion,
|
||||
pWin->border.pixmap);
|
||||
}
|
||||
break;
|
||||
}
|
||||
fbValidateDrawable (&pWin->drawable);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,14 +119,12 @@
|
|||
#define fbOverlayGeneration wfbOverlayGeneration
|
||||
#define fbOverlayGetScreenPrivateKey wfbOverlayGetScreenPrivateKey
|
||||
#define fbOverlayPaintKey wfbOverlayPaintKey
|
||||
#define fbOverlayPaintWindow wfbOverlayPaintWindow
|
||||
#define fbOverlayScreenPrivateKey wfbOverlayScreenPrivateKey
|
||||
#define fbOverlaySetupScreen wfbOverlaySetupScreen
|
||||
#define fbOverlayUpdateLayerRegion wfbOverlayUpdateLayerRegion
|
||||
#define fbOverlayWindowExposures wfbOverlayWindowExposures
|
||||
#define fbOverlayWindowLayer wfbOverlayWindowLayer
|
||||
#define fbPadPixmap wfbPadPixmap
|
||||
#define fbPaintWindow wfbPaintWindow
|
||||
#define fbPictureInit wfbPictureInit
|
||||
#define fbPixmapToRegion wfbPixmapToRegion
|
||||
#define fbPolyArc wfbPolyArc
|
||||
|
|
|
|||
Loading…
Reference in a new issue