diff options
Diffstat (limited to 'src/atiaccel.c')
-rw-r--r-- | src/atiaccel.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/atiaccel.c b/src/atiaccel.c index 11c39c7..a1f09aa 100644 --- a/src/atiaccel.c +++ b/src/atiaccel.c @@ -63,51 +63,4 @@ ATIInitializeAcceleration pATI->pXAAInfo = NULL; return FALSE; } - -FBLinearPtr -ATIResizeOffscreenLinear -( - ScreenPtr pScreen, - FBLinearPtr pLinear, - int Size -) -{ - if (Size <= 0) - { - xf86FreeOffscreenLinear(pLinear); - return NULL; - } - - if (pLinear) - { - if ((pLinear->size >= Size) || - xf86ResizeOffscreenLinear(pLinear, Size)) - { - pLinear->MoveLinearCallback = NULL; - pLinear->RemoveLinearCallback = NULL; - return pLinear; - } - - xf86FreeOffscreenLinear(pLinear); - } - - pLinear = xf86AllocateOffscreenLinear(pScreen, Size, 16, NULL, NULL, NULL); - - if (!pLinear) - { - int maxSize; - - xf86QueryLargestOffscreenLinear(pScreen, &maxSize, 16, - PRIORITY_EXTREME); - - if (maxSize < Size) - return NULL; - - xf86PurgeUnlockedOffscreenAreas(pScreen); - pLinear = - xf86AllocateOffscreenLinear(pScreen, Size, 16, NULL, NULL, NULL); - } - - return pLinear; -} #endif /* USE_XAA */ |