diff --git a/hw/xwin/win.h b/hw/xwin/win.h index 9b2d171be..ec73b72cd 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -485,7 +485,6 @@ typedef struct _winPrivScreenRec { winInitVisualsProcPtr pwinInitVisuals; winAdjustVideoModeProcPtr pwinAdjustVideoMode; winCreateBoundingWindowProcPtr pwinCreateBoundingWindow; - winFinishScreenInitProcPtr pwinFinishScreenInit; winBltExposedRegionsProcPtr pwinBltExposedRegions; winBltExposedWindowRegionProcPtr pwinBltExposedWindowRegion; winActivateAppProcPtr pwinActivateApp; @@ -827,9 +826,6 @@ void Bool winScreenInit(ScreenPtr pScreen, int argc, char **argv); -Bool - winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv); - /* * winshadddnl.c */ diff --git a/hw/xwin/winscrinit.c b/hw/xwin/winscrinit.c index f0af427e8..bf70dd24f 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -38,6 +38,8 @@ #include "win.h" #include "winmsg.h" +static Bool winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv); + /* * Determine what type of screen we are initializing * and call the appropriate procedure to initialize @@ -165,9 +167,8 @@ winScreenInit(ScreenPtr pScreen, int argc, char **argv) /* Clear the visuals list */ miClearVisualTypes(); - /* Call the engine dependent screen initialization procedure */ - if (!((*pScreenPriv->pwinFinishScreenInit) (pScreen->myNum, pScreen, argc, argv))) { - ErrorF("winScreenInit - winFinishScreenInit () failed\n"); + if (!winFinishScreenInitFB(pScreen->myNum, pScreen, argc, argv)) { + ErrorF("%s(): winFinishScreenInitFB () failed\n", __FUNCTION__); /* call the engine dependent screen close procedure to clean up from a failure */ pScreenPriv->pwinCloseScreen(pScreen); @@ -221,7 +222,7 @@ winCreateScreenResources(ScreenPtr pScreen) } /* See Porting Layer Definition - p. 20 */ -Bool +static Bool winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv) { winScreenPriv(pScreen); diff --git a/hw/xwin/winshadddnl.c b/hw/xwin/winshadddnl.c index 38ce01f08..bbed6f363 100644 --- a/hw/xwin/winshadddnl.c +++ b/hw/xwin/winshadddnl.c @@ -1193,7 +1193,6 @@ winSetEngineFunctionsShadowDDNL(ScreenPtr pScreen) winCreateBoundingWindowFullScreen; else pScreenPriv->pwinCreateBoundingWindow = winCreateBoundingWindowWindowed; - pScreenPriv->pwinFinishScreenInit = winFinishScreenInitFB; pScreenPriv->pwinBltExposedRegions = winBltExposedRegionsShadowDDNL; pScreenPriv->pwinBltExposedWindowRegion = NULL; pScreenPriv->pwinActivateApp = winActivateAppShadowDDNL; diff --git a/hw/xwin/winshadgdi.c b/hw/xwin/winshadgdi.c index f8317ad27..f6e50d510 100644 --- a/hw/xwin/winshadgdi.c +++ b/hw/xwin/winshadgdi.c @@ -1265,7 +1265,6 @@ winSetEngineFunctionsShadowGDI(ScreenPtr pScreen) winCreateBoundingWindowFullScreen; else pScreenPriv->pwinCreateBoundingWindow = winCreateBoundingWindowWindowed; - pScreenPriv->pwinFinishScreenInit = winFinishScreenInitFB; pScreenPriv->pwinBltExposedRegions = winBltExposedRegionsShadowGDI; pScreenPriv->pwinBltExposedWindowRegion = winBltExposedWindowRegionShadowGDI; pScreenPriv->pwinActivateApp = winActivateAppShadowGDI;