|
67 | 67 | * dropped due to colour flashing concerns.
|
68 | 68 | *
|
69 | 69 | * TODO:
|
70 |
| - * - Allow miModifyBanking() to change BankSize and nBankDepth. |
71 | 70 | * - Re-instate shared and double banking for framebuffers whose pixmap formats
|
72 | 71 | * don't describe how the server "sees" the screen.
|
73 | 72 | * - Remove remaining assumptions that a pixmap's devPrivate field points
|
@@ -2216,59 +2215,6 @@ miBankNewSerialNumber(
|
2216 | 2215 | return WT_WALKCHILDREN;
|
2217 | 2216 | }
|
2218 | 2217 |
|
2219 |
| -/* This entry modifies the banking interface */ |
2220 |
| -Bool |
2221 |
| -miModifyBanking( |
2222 |
| - ScreenPtr pScreen, |
2223 |
| - miBankInfoPtr pBankInfo |
2224 |
| -) |
2225 |
| -{ |
2226 |
| - unsigned int type; |
2227 |
| - |
2228 |
| - if (!pScreen) |
2229 |
| - return FALSE; |
2230 |
| - |
2231 |
| - if (miBankGeneration == serverGeneration) |
2232 |
| - { |
2233 |
| - SCREEN_INIT; |
2234 |
| - |
2235 |
| - if (pScreenPriv) |
2236 |
| - { |
2237 |
| - if (!pBankInfo || !pBankInfo->BankSize || |
2238 |
| - !pBankInfo->pBankA || !pBankInfo->pBankB || |
2239 |
| - !pBankInfo->SetSourceBank || !pBankInfo->SetDestinationBank || |
2240 |
| - !pBankInfo->SetSourceAndDestinationBanks) |
2241 |
| - return FALSE; |
2242 |
| - |
2243 |
| - /* BankSize and nBankDepth cannot, as yet, be changed */ |
2244 |
| - if ((pScreenPriv->BankInfo.BankSize != pBankInfo->BankSize) || |
2245 |
| - (pScreenPriv->BankInfo.nBankDepth != pBankInfo->nBankDepth)) |
2246 |
| - return FALSE; |
2247 |
| - |
2248 |
| - if ((type = miBankDeriveType(pScreen, pBankInfo)) == BANK_NOBANK) |
2249 |
| - return FALSE; |
2250 |
| - |
2251 |
| - /* Reset banking info */ |
2252 |
| - pScreenPriv->BankInfo = *pBankInfo; |
2253 |
| - if (type != pScreenPriv->type) |
2254 |
| - { |
2255 |
| - /* |
2256 |
| - * Banking type is changing. Revalidate all window GC's. |
2257 |
| - */ |
2258 |
| - pScreenPriv->type = type; |
2259 |
| - WalkTree(pScreen, miBankNewSerialNumber, 0); |
2260 |
| - } |
2261 |
| - |
2262 |
| - return TRUE; |
2263 |
| - } |
2264 |
| - } |
2265 |
| - |
2266 |
| - if (!pBankInfo || !pBankInfo->BankSize) |
2267 |
| - return TRUE; /* No change requested */ |
2268 |
| - |
2269 |
| - return FALSE; |
2270 |
| -} |
2271 |
| - |
2272 | 2218 | /*
|
2273 | 2219 | * Given various screen attributes, determine the minimum scanline width such
|
2274 | 2220 | * that each scanline is server and DDX padded and any pixels with imbedded
|
|
0 commit comments