(!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 fbModifyPixmapHeader miModifyPixmapHeader
|
||||
|
||||
/*
|
||||
* fbfillsp.c
|
||||
*/
|
||||
|
|
|
@ -503,7 +503,6 @@ typedef struct _winPrivScreenRec {
|
|||
PostValidateTreeProcPtr PostValidateTree;
|
||||
ClearToBackgroundProcPtr ClearToBackground;
|
||||
ClipNotifyProcPtr ClipNotify;
|
||||
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
|
||||
|
||||
winCursorRec cursor;
|
||||
|
||||
|
|
|
@ -1092,7 +1092,6 @@ winModifyPixmapHeaderMultiwindow(PixmapPtr pPixmap,
|
|||
{
|
||||
int i;
|
||||
winPrivPixmapPtr pPixmapPriv = winGetPixmapPriv(pPixmap);
|
||||
Bool fResult;
|
||||
|
||||
/* reinitialize everything */
|
||||
pPixmap->drawable.depth = depth;
|
||||
|
@ -1143,13 +1142,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 fbModifyPixmapHeader(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