diff options
Diffstat (limited to 'src/amd_lx_rotate.c')
-rw-r--r-- | src/amd_lx_rotate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/amd_lx_rotate.c b/src/amd_lx_rotate.c index 4a9c97e..4458a96 100644 --- a/src/amd_lx_rotate.c +++ b/src/amd_lx_rotate.c @@ -61,8 +61,6 @@ LXUpdateFunc(ScreenPtr pScreen, shadowBufPtr pBuf) ScrnInfoPtr pScrni = xf86Screens[pScreen->myNum]; GeodeRec *pGeode = GEODEPTR(pScrni); - unsigned int srcBase; - fbGetDrawable (&pShadow->drawable, shaBits, shaStride, shaBpp, shaXoff, shaYoff); @@ -145,11 +143,12 @@ Bool LXSetRotatePitch(ScrnInfoPtr pScrni) pScrni->displayWidth = pGeode->displayWidth; if (pGeode->Compression) - pGeode->Pitch = LXCalculatePitchBytes(pScrni->displayWidth, + pGeode->Pitch = GeodeCalculatePitchBytes(pScrni->displayWidth, pScrni->bitsPerPixel); else pGeode->Pitch = (pScrni->displayWidth * (pScrni->bitsPerPixel >> 3)); + return TRUE; } Bool |