xwin: drop wrapping on ScreenRec->ModifyPixmapHeader()
Instead of complicated wrapping, just call fbModifyPixmapHeader() directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
1758b94520
commit
61ac63e8df
|
@ -503,7 +503,6 @@ typedef struct _winPrivScreenRec {
|
|||
PostValidateTreeProcPtr PostValidateTree;
|
||||
ClearToBackgroundProcPtr ClearToBackground;
|
||||
ClipNotifyProcPtr ClipNotify;
|
||||
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
|
||||
|
||||
winCursorRec cursor;
|
||||
|
||||
|
|
|
@ -1058,7 +1058,6 @@ winModifyPixmapHeaderMultiwindow(PixmapPtr pPixmap,
|
|||
{
|
||||
int i;
|
||||
winPrivPixmapPtr pPixmapPriv = winGetPixmapPriv(pPixmap);
|
||||
Bool fResult;
|
||||
|
||||
/* reinitialize everything */
|
||||
pPixmap->drawable.depth = depth;
|
||||
|
@ -1109,13 +1108,5 @@ winModifyPixmapHeaderMultiwindow(PixmapPtr pPixmap,
|
|||
|
||||
winDebug("winModifyPixmapHeaderMultiwindow: falling back\n");
|
||||
|
||||
{
|
||||
ScreenPtr pScreen = pPixmap->drawable.pScreen;
|
||||
winScreenPriv(pScreen);
|
||||
WIN_UNWRAP(ModifyPixmapHeader);
|
||||
fResult = (*pScreen->ModifyPixmapHeader) (pPixmap, width, height, depth, bitsPerPixel, devKind, pPixData);
|
||||
WIN_WRAP(ModifyPixmapHeader, winModifyPixmapHeaderMultiwindow);
|
||||
}
|
||||
|
||||
return fResult;
|
||||
return miModifyPixmapHeader(pPixmap, width, height, depth, bitsPerPixel, devKind, pPixData);
|
||||
}
|
||||
|
|
|
@ -401,9 +401,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
|||
pScreenPriv->a = NULL; \
|
||||
}
|
||||
|
||||
/* Save a pointer to each lower-level window procedure */
|
||||
WRAP(ModifyPixmapHeader);
|
||||
|
||||
/* Assign multi-window window procedures to be top level procedures */
|
||||
pScreen->CreateWindow = winCreateWindowMultiWindow;
|
||||
pScreen->DestroyWindow = winDestroyWindowMultiWindow;
|
||||
|
|
Loading…
Reference in New Issue