[Bug 71441] Incorrect output panning with intel-virtual-output

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 10 07:17:00 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=71441

--- Comment #2 from Chris Wilson <chris at chris-wilson.co.uk> ---
Better:

diff --git a/tools/virtual.c b/tools/virtual.c
index 48fe347..c794bf3 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -954,6 +954,7 @@ static void context_update(struct context *ctx)
                        struct output *src = &clone->src;
                        struct output *dst = &clone->dst;
                        XRROutputInfo *o;
+                       XRRPanningInfo panning;
                        struct clone *set;
                        RRCrtc rr_crtc;

@@ -1033,6 +1034,7 @@ err:
                        XRRSetCrtcConfig(dst->dpy, res, rr_crtc, CurrentTime,
                                         dst->x, dst->y, dst->mode.id,
dst->rotation,
                                         &dst->rr_output, 1);
+                       XRRSetPanning(dst->dpy, res, rr_crtc, memset(&panning,
0, sizeof(panning)));
                        dst->rr_crtc = rr_crtc;
                }
                XUngrabServer(display->dpy);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20131110/559996b3/attachment-0001.html>


More information about the intel-gfx-bugs mailing list