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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nv_shadow.c b/src/nv_shadow.c
index 3946448..58db331 100644
--- a/src/nv_shadow.c
+++ b/src/nv_shadow.c
@@ -13,6 +13,17 @@
#include "shadowfb.h"
#include "servermd.h"
+void
+NVShadowUpdate (ScreenPtr pScreen, shadowBufPtr pBuf)
+{
+ RegionPtr damage = DamageRegion(pBuf->pDamage);
+ ScrnInfoPtr pScrn;
+ pScrn = xf86ScreenToScrn(pScreen);
+
+ (NVPTR(pScrn))->refreshArea (pScrn, REGION_NUM_RECTS(damage),
+ REGION_RECTS(damage));
+}
+
void
NVRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox)