diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index cdab1d99a..06740a422 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -324,11 +324,6 @@ xf86CollectOptions(ScrnInfoPtr pScrn, XF86OptionPtr extraOpts); #ifdef RANDR extern _X_EXPORT Bool xf86RandRInit(ScreenPtr pScreen); -extern _X_EXPORT Bool -xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen, - int newvirtX, int newvirtY, - int newmmWidth, int newmmHeight, - Bool resetMode); #endif /* xf86Extensions.c */ diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c index 49ba6bb5e..c0cfc6f7c 100644 --- a/hw/xfree86/common/xf86RandR.c +++ b/hw/xfree86/common/xf86RandR.c @@ -359,44 +359,6 @@ static void xf86RandRCloseScreen(CallbackListPtr *pcbl, dixSetPrivate(&pScreen->devPrivates, xf86RandRKey, NULL); } -/* Function to change RandR's idea of the virtual screen size */ -Bool -xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen, - int newvirtX, int newvirtY, int newmmWidth, - int newmmHeight, Bool resetMode) -{ - XF86RandRInfoPtr randrp; - - if (xf86RandRKey == NULL) - return FALSE; - - randrp = XF86RANDRINFO(pScreen); - if (randrp == NULL) - return FALSE; - - if (newvirtX > 0) - randrp->virtualX = newvirtX; - - if (newvirtY > 0) - randrp->virtualY = newvirtY; - - if (newmmWidth > 0) - randrp->mmWidth = newmmWidth; - - if (newmmHeight > 0) - randrp->mmHeight = newmmHeight; - - /* This is only for during server start */ - if (resetMode) { - ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); - return (xf86RandRSetMode(pScreen, - pScrn->currentMode, - TRUE, pScreen->mmWidth, pScreen->mmHeight)); - } - - return TRUE; -} - Bool xf86RandRInit(ScreenPtr pScreen) {