summaryrefslogtreecommitdiff
path: root/src/amd_lx_rotate.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-09 13:31:15 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-05-09 13:31:15 -0600
commit8fa5d1e3653f91c0c1409147f7292463554dd9f9 (patch)
tree6d0ef19239f12c39199d44c9ef520bf0fb8418d2 /src/amd_lx_rotate.c
parent0af46deb156c1d4bdc7c3378c70bb9ef696a4886 (diff)
Eliminate the first round of warnings discovered with -Wall
Diffstat (limited to 'src/amd_lx_rotate.c')
-rw-r--r--src/amd_lx_rotate.c5
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