xwin: glx: drop glxWinRealizeWindow()
It does nothing more than just calling the original/wrapped function, so we don't need that at all. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
1b990d3c0c
commit
20aec694e4
|
@ -373,7 +373,6 @@ static __GLXdrawable *glxWinCreateDrawable(ClientPtr client,
|
||||||
int type,
|
int type,
|
||||||
XID glxDrawId, __GLXconfig * conf);
|
XID glxDrawId, __GLXconfig * conf);
|
||||||
|
|
||||||
static Bool glxWinRealizeWindow(WindowPtr pWin);
|
|
||||||
static Bool glxWinUnrealizeWindow(WindowPtr pWin);
|
static Bool glxWinUnrealizeWindow(WindowPtr pWin);
|
||||||
static void glxWinCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg,
|
static void glxWinCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg,
|
||||||
RegionPtr prgnSrc);
|
RegionPtr prgnSrc);
|
||||||
|
@ -704,9 +703,7 @@ glxWinScreenProbe(ScreenPtr pScreen)
|
||||||
// dump out fbConfigs now fbConfigIds and visualIDs have been assigned
|
// dump out fbConfigs now fbConfigIds and visualIDs have been assigned
|
||||||
fbConfigsDump(screen->base.numFBConfigs, screen->base.fbconfigs, &rejects);
|
fbConfigsDump(screen->base.numFBConfigs, screen->base.fbconfigs, &rejects);
|
||||||
|
|
||||||
/* Wrap RealizeWindow, UnrealizeWindow and CopyWindow on this screen */
|
/* Wrap UnrealizeWindow and CopyWindow on this screen */
|
||||||
screen->RealizeWindow = pScreen->RealizeWindow;
|
|
||||||
pScreen->RealizeWindow = glxWinRealizeWindow;
|
|
||||||
screen->UnrealizeWindow = pScreen->UnrealizeWindow;
|
screen->UnrealizeWindow = pScreen->UnrealizeWindow;
|
||||||
pScreen->UnrealizeWindow = glxWinUnrealizeWindow;
|
pScreen->UnrealizeWindow = glxWinUnrealizeWindow;
|
||||||
screen->CopyWindow = pScreen->CopyWindow;
|
screen->CopyWindow = pScreen->CopyWindow;
|
||||||
|
@ -730,23 +727,6 @@ glxWinScreenProbe(ScreenPtr pScreen)
|
||||||
* Window functions
|
* Window functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static Bool
|
|
||||||
glxWinRealizeWindow(WindowPtr pWin)
|
|
||||||
{
|
|
||||||
Bool result;
|
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
|
||||||
glxWinScreen *screenPriv = (glxWinScreen *) glxGetScreen(pScreen);
|
|
||||||
|
|
||||||
GLWIN_DEBUG_MSG("glxWinRealizeWindow");
|
|
||||||
|
|
||||||
/* Allow the window to be created (RootlessRealizeWindow is inside our wrap) */
|
|
||||||
pScreen->RealizeWindow = screenPriv->RealizeWindow;
|
|
||||||
result = pScreen->RealizeWindow(pWin);
|
|
||||||
pScreen->RealizeWindow = glxWinRealizeWindow;
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
glxWinCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
glxWinCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||||
{
|
{
|
||||||
|
|
|
@ -72,7 +72,6 @@ struct __GLXWinScreen {
|
||||||
Bool has_WGL_ARB_framebuffer_sRGB;
|
Bool has_WGL_ARB_framebuffer_sRGB;
|
||||||
|
|
||||||
/* wrapped screen functions */
|
/* wrapped screen functions */
|
||||||
RealizeWindowProcPtr RealizeWindow;
|
|
||||||
UnrealizeWindowProcPtr UnrealizeWindow;
|
UnrealizeWindowProcPtr UnrealizeWindow;
|
||||||
CopyWindowProcPtr CopyWindow;
|
CopyWindowProcPtr CopyWindow;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue