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:
parent
643b707f2f
commit
43f36d9ce3
|
@ -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 */
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue