xfree86: xf86.h: drop unused xf86RandRSetNewVirtualAndDimensions()

Not used anywhere, so no need to keep it around anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-20 19:27:46 +02:00
parent 643b707f2f
commit 43f36d9ce3
2 changed files with 0 additions and 43 deletions

View File

@ -324,11 +324,6 @@ xf86CollectOptions(ScrnInfoPtr pScrn, XF86OptionPtr extraOpts);
#ifdef RANDR #ifdef RANDR
extern _X_EXPORT Bool extern _X_EXPORT Bool
xf86RandRInit(ScreenPtr pScreen); xf86RandRInit(ScreenPtr pScreen);
extern _X_EXPORT Bool
xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen,
int newvirtX, int newvirtY,
int newmmWidth, int newmmHeight,
Bool resetMode);
#endif #endif
/* xf86Extensions.c */ /* xf86Extensions.c */

View File

@ -359,44 +359,6 @@ static void xf86RandRCloseScreen(CallbackListPtr *pcbl,
dixSetPrivate(&pScreen->devPrivates, xf86RandRKey, NULL); 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 Bool
xf86RandRInit(ScreenPtr pScreen) xf86RandRInit(ScreenPtr pScreen)
{ {