xfree86: Remove pointless xf86RandRCreateScreenResources
Given the #if 0 this was wrapping for no effect. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
a8cca7bd5a
commit
2d451c5cdc
|
@ -37,7 +37,6 @@
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
|
|
||||||
typedef struct _xf86RandRInfo {
|
typedef struct _xf86RandRInfo {
|
||||||
CreateScreenResourcesProcPtr CreateScreenResources;
|
|
||||||
CloseScreenProcPtr CloseScreen;
|
CloseScreenProcPtr CloseScreen;
|
||||||
int virtualX;
|
int virtualX;
|
||||||
int virtualY;
|
int virtualY;
|
||||||
|
@ -335,34 +334,6 @@ xf86RandRSetConfig(ScreenPtr pScreen,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Wait until the screen is initialized before whacking the
|
|
||||||
* sizes around; otherwise the screen pixmap will be allocated
|
|
||||||
* at the current mode size rather than the maximum size
|
|
||||||
*/
|
|
||||||
static Bool
|
|
||||||
xf86RandRCreateScreenResources(ScreenPtr pScreen)
|
|
||||||
{
|
|
||||||
XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen);
|
|
||||||
DisplayModePtr mode;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
pScreen->CreateScreenResources = randrp->CreateScreenResources;
|
|
||||||
if (!(*pScreen->CreateScreenResources) (pScreen))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
mode = scrp->currentMode;
|
|
||||||
if (mode)
|
|
||||||
xf86RandRSetMode(pScreen, mode, TRUE);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reset size back to original
|
* Reset size back to original
|
||||||
*/
|
*/
|
||||||
|
@ -463,9 +434,6 @@ xf86RandRInit(ScreenPtr pScreen)
|
||||||
randrp->mmWidth = pScreen->mmWidth;
|
randrp->mmWidth = pScreen->mmWidth;
|
||||||
randrp->mmHeight = pScreen->mmHeight;
|
randrp->mmHeight = pScreen->mmHeight;
|
||||||
|
|
||||||
randrp->CreateScreenResources = pScreen->CreateScreenResources;
|
|
||||||
pScreen->CreateScreenResources = xf86RandRCreateScreenResources;
|
|
||||||
|
|
||||||
randrp->CloseScreen = pScreen->CloseScreen;
|
randrp->CloseScreen = pScreen->CloseScreen;
|
||||||
pScreen->CloseScreen = xf86RandRCloseScreen;
|
pScreen->CloseScreen = xf86RandRCloseScreen;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user