summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2008-12-11 18:48:02 +0100
committerMatthias Hopf <mhopf@suse.de>2008-12-11 18:48:02 +0100
commitd41b8960be8ad316504ef5657c0abfe6d76d3b5e (patch)
tree85c6b417285db456587d65b2459fced09754cdb7 /hw
parentfd77ce9f884f5ac4d36736f3a99ba86101f133ea (diff)
randr: Fix initial panning border copy
Thanks to Julien Cristau for finding this.
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/modes/xf86Crtc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 8e6cef008..6b37a72c7 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -1348,7 +1348,10 @@ xf86InitialPanning (ScrnInfoPtr scrn)
&track_width, &track_height, &track_left, &track_top,
&brdr[0], &brdr[1], &brdr[2], &brdr[3])) {
case 12:
- memcpy (output->initialBorder, brdr, 4*sizeof(INT16));
+ output->initialBorder[0] = brdr[0];
+ output->initialBorder[1] = brdr[1];
+ output->initialBorder[2] = brdr[2];
+ output->initialBorder[3] = brdr[3];
/* fall through */
case 8:
output->initialTrackingArea.x1 = track_left;