(!1705) 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
a0ce08487c
commit
1bcb842bb7
2
fb/fb.h
2
fb/fb.h
|
@ -846,6 +846,8 @@ fbPolyFillRect(DrawablePtr pDrawable,
|
||||||
|
|
||||||
#define fbMoveWindow miMoveWindow
|
#define fbMoveWindow miMoveWindow
|
||||||
|
|
||||||
|
#define fbModifyPixmapHeader miModifyPixmapHeader
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fbfillsp.c
|
* fbfillsp.c
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -503,7 +503,6 @@ typedef struct _winPrivScreenRec {
|
||||||
PostValidateTreeProcPtr PostValidateTree;
|
PostValidateTreeProcPtr PostValidateTree;
|
||||||
ClearToBackgroundProcPtr ClearToBackground;
|
ClearToBackgroundProcPtr ClearToBackground;
|
||||||
ClipNotifyProcPtr ClipNotify;
|
ClipNotifyProcPtr ClipNotify;
|
||||||
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
|
|
||||||
|
|
||||||
winCursorRec cursor;
|
winCursorRec cursor;
|
||||||
|
|
||||||
|
|
|
@ -1092,7 +1092,6 @@ winModifyPixmapHeaderMultiwindow(PixmapPtr pPixmap,
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
winPrivPixmapPtr pPixmapPriv = winGetPixmapPriv(pPixmap);
|
winPrivPixmapPtr pPixmapPriv = winGetPixmapPriv(pPixmap);
|
||||||
Bool fResult;
|
|
||||||
|
|
||||||
/* reinitialize everything */
|
/* reinitialize everything */
|
||||||
pPixmap->drawable.depth = depth;
|
pPixmap->drawable.depth = depth;
|
||||||
|
@ -1143,13 +1142,5 @@ winModifyPixmapHeaderMultiwindow(PixmapPtr pPixmap,
|
||||||
|
|
||||||
winDebug("winModifyPixmapHeaderMultiwindow: falling back\n");
|
winDebug("winModifyPixmapHeaderMultiwindow: falling back\n");
|
||||||
|
|
||||||
{
|
return fbModifyPixmapHeader(pPixmap, width, height, depth, bitsPerPixel, devKind, pPixData);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -401,9 +401,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
pScreenPriv->a = NULL; \
|
pScreenPriv->a = NULL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save a pointer to each lower-level window procedure */
|
|
||||||
WRAP(ModifyPixmapHeader);
|
|
||||||
|
|
||||||
/* Assign multi-window window procedures to be top level procedures */
|
/* Assign multi-window window procedures to be top level procedures */
|
||||||
pScreen->CreateWindow = winCreateWindowMultiWindow;
|
pScreen->CreateWindow = winCreateWindowMultiWindow;
|
||||||
pScreen->DestroyWindow = winDestroyWindowMultiWindow;
|
pScreen->DestroyWindow = winDestroyWindowMultiWindow;
|
||||||
|
|
Loading…
Reference in New Issue