[PATCH 13/13] xf86-video-radeonhd: RandR 1.3 Panning support
Matthias Hopf
mhopf at suse.de
Fri Nov 28 09:06:46 PST 2008
---
src/rhd_randr.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/rhd_randr.c b/src/rhd_randr.c
index 62b5e74..fc0439f 100644
--- a/src/rhd_randr.c
+++ b/src/rhd_randr.c
@@ -499,6 +499,14 @@ rhdRRCrtcModeFixupDUMMY(xf86CrtcPtr crtc,
return TRUE;
}
+static void
+rhdRRCrtcPan(xf86CrtcPtr crtc, int x, int y)
+{
+ struct rhdCrtc *rhdCrtc = ((struct rhdRandrCrtc*) (crtc->driver_private))->rhdCrtc;
+
+ rhdCrtc->FrameSet(rhdCrtc, x, y);
+}
+
/*
* xf86Output callback functions
@@ -1531,6 +1539,10 @@ static xf86CrtcFuncsRec rhdRRCrtcFuncs = {
/* set_mode_major */
, NULL
#endif
+#if XF86_CRTC_VERSION >= 2
+ /* pan */
+ , rhdRRCrtcPan
+#endif
};
/*
--
1.5.6
More information about the xorg
mailing list