summaryrefslogtreecommitdiff
path: root/src/nv_shadow.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2006-01-02 01:54:19 +0000
committerAaron Plattner <aplattner@nvidia.com>2006-01-02 01:54:19 +0000
commite8fd45625f2e09830136bde6bc70d51f25892450 (patch)
tree7101312d0e4ea20329643d5aafd8f80c1db89d72 /src/nv_shadow.c
parent5ec53e759c5233a26a6c80901b9f31b51153f756 (diff)
Preliminary RandR rotation support. Bug #4708
<https://bugs.freedesktop.org/show_bug.cgi?id=4708>
Diffstat (limited to 'src/nv_shadow.c')
-rw-r--r--src/nv_shadow.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nv_shadow.c b/src/nv_shadow.c
index 2278bb7..e695288 100644
--- a/src/nv_shadow.c
+++ b/src/nv_shadow.c
@@ -68,6 +68,11 @@ NVRefreshArea8(ScrnInfoPtr pScrn, int num, BoxPtr pbox)
CARD8 *dstPtr, *srcPtr, *src;
CARD32 *dst;
+ if(!pNv->Rotate) {
+ NVRefreshArea(pScrn, num, pbox);
+ return;
+ }
+
dstPitch = pScrn->displayWidth;
srcPitch = -pNv->Rotate * pNv->ShadowPitch;
@@ -114,6 +119,11 @@ NVRefreshArea16(ScrnInfoPtr pScrn, int num, BoxPtr pbox)
CARD16 *dstPtr, *srcPtr, *src;
CARD32 *dst;
+ if(!pNv->Rotate) {
+ NVRefreshArea(pScrn, num, pbox);
+ return;
+ }
+
dstPitch = pScrn->displayWidth;
srcPitch = -pNv->Rotate * pNv->ShadowPitch >> 1;
@@ -159,6 +169,11 @@ NVRefreshArea32(ScrnInfoPtr pScrn, int num, BoxPtr pbox)
int count, width, height, dstPitch, srcPitch;
CARD32 *dstPtr, *srcPtr, *src, *dst;
+ if(!pNv->Rotate) {
+ NVRefreshArea(pScrn, num, pbox);
+ return;
+ }
+
dstPitch = pScrn->displayWidth;
srcPitch = -pNv->Rotate * pNv->ShadowPitch >> 2;