Delete unused miModifyBanking()
This commit is contained in:
parent
94825ad3c7
commit
9dbfcd8921
54
mi/mibank.c
54
mi/mibank.c
|
@ -67,7 +67,6 @@
|
||||||
* dropped due to colour flashing concerns.
|
* dropped due to colour flashing concerns.
|
||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - Allow miModifyBanking() to change BankSize and nBankDepth.
|
|
||||||
* - Re-instate shared and double banking for framebuffers whose pixmap formats
|
* - Re-instate shared and double banking for framebuffers whose pixmap formats
|
||||||
* don't describe how the server "sees" the screen.
|
* don't describe how the server "sees" the screen.
|
||||||
* - Remove remaining assumptions that a pixmap's devPrivate field points
|
* - Remove remaining assumptions that a pixmap's devPrivate field points
|
||||||
|
@ -2216,59 +2215,6 @@ miBankNewSerialNumber(
|
||||||
return WT_WALKCHILDREN;
|
return WT_WALKCHILDREN;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This entry modifies the banking interface */
|
|
||||||
Bool
|
|
||||||
miModifyBanking(
|
|
||||||
ScreenPtr pScreen,
|
|
||||||
miBankInfoPtr pBankInfo
|
|
||||||
)
|
|
||||||
{
|
|
||||||
unsigned int type;
|
|
||||||
|
|
||||||
if (!pScreen)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if (miBankGeneration == serverGeneration)
|
|
||||||
{
|
|
||||||
SCREEN_INIT;
|
|
||||||
|
|
||||||
if (pScreenPriv)
|
|
||||||
{
|
|
||||||
if (!pBankInfo || !pBankInfo->BankSize ||
|
|
||||||
!pBankInfo->pBankA || !pBankInfo->pBankB ||
|
|
||||||
!pBankInfo->SetSourceBank || !pBankInfo->SetDestinationBank ||
|
|
||||||
!pBankInfo->SetSourceAndDestinationBanks)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
/* BankSize and nBankDepth cannot, as yet, be changed */
|
|
||||||
if ((pScreenPriv->BankInfo.BankSize != pBankInfo->BankSize) ||
|
|
||||||
(pScreenPriv->BankInfo.nBankDepth != pBankInfo->nBankDepth))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if ((type = miBankDeriveType(pScreen, pBankInfo)) == BANK_NOBANK)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
/* Reset banking info */
|
|
||||||
pScreenPriv->BankInfo = *pBankInfo;
|
|
||||||
if (type != pScreenPriv->type)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Banking type is changing. Revalidate all window GC's.
|
|
||||||
*/
|
|
||||||
pScreenPriv->type = type;
|
|
||||||
WalkTree(pScreen, miBankNewSerialNumber, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!pBankInfo || !pBankInfo->BankSize)
|
|
||||||
return TRUE; /* No change requested */
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Given various screen attributes, determine the minimum scanline width such
|
* Given various screen attributes, determine the minimum scanline width such
|
||||||
* that each scanline is server and DDX padded and any pixels with imbedded
|
* that each scanline is server and DDX padded and any pixels with imbedded
|
||||||
|
|
|
@ -94,12 +94,6 @@ miInitializeBanking(
|
||||||
miBankInfoPtr /*pBankInfo*/
|
miBankInfoPtr /*pBankInfo*/
|
||||||
);
|
);
|
||||||
|
|
||||||
Bool
|
|
||||||
miModifyBanking(
|
|
||||||
ScreenPtr /*pScreen*/,
|
|
||||||
miBankInfoPtr /*pBankInfo*/
|
|
||||||
);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function determines the minimum screen width, given a initial estimate
|
* This function determines the minimum screen width, given a initial estimate
|
||||||
* and various screen attributes. DDX needs to determine this width before
|
* and various screen attributes. DDX needs to determine this width before
|
||||||
|
|
Loading…
Reference in New Issue