summaryrefslogtreecommitdiff
path: root/src/nv_shadow.c
diff options
context:
space:
mode:
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;