diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2007-05-04 11:43:09 -0600 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2007-05-04 11:43:33 -0600 |
commit | 0af46deb156c1d4bdc7c3378c70bb9ef696a4886 (patch) | |
tree | bdf9f35a95ee55714e052ef3d5aa611141a2fd22 | |
parent | c35f7fe15a5a872606f18c84c097f3b5b1cada74 (diff) |
Completely eliminate the rotation pitch
Chris Ball is still getting segfalts - completely eliminate the
call.
-rw-r--r-- | src/amd_lx_rotate.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/amd_lx_rotate.c b/src/amd_lx_rotate.c index 932abf7..4a9c97e 100644 --- a/src/amd_lx_rotate.c +++ b/src/amd_lx_rotate.c @@ -141,32 +141,8 @@ LXUpdateFunc(ScreenPtr pScreen, shadowBufPtr pBuf) Bool LXSetRotatePitch(ScrnInfoPtr pScrni) { GeodeRec *pGeode = GEODEPTR(pScrni); - int rotation = LXGetRotation(pScrni->pScreen); - /* We can't depend on the value of pGeode->rotation here, because - * it might not have been set yet. Use what RandR is telling us, - * instead - */ - - switch (rotation) { - case RR_Rotate_0: - pScrni->displayWidth = pGeode->displayWidth; - break; - - case RR_Rotate_90: - pScrni->displayWidth = pGeode->displayWidth; - break; - - case RR_Rotate_180: - pScrni->displayWidth = pGeode->displayWidth; - break; - - case RR_Rotate_270: - pScrni->displayWidth = pGeode->displayWidth; - break; - } - - /* Set the new drawing pitch */ + pScrni->displayWidth = pGeode->displayWidth; if (pGeode->Compression) pGeode->Pitch = LXCalculatePitchBytes(pScrni->displayWidth, |