<div dir="ltr">Whoops.<br><br>Reviewed-by: Jasper St. Pierre <<a href="mailto:jstpierre@mecheye.net">jstpierre@mecheye.net</a>><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 7:23 PM, Keith Packard <span dir="ltr"><<a href="mailto:keithp@keithp.com" target="_blank">keithp@keithp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Write the swapped values to the destination rather than the source.<br>
<br>
Signed-off-by: Keith Packard <<a href="mailto:keithp@keithp.com">keithp@keithp.com</a>><br>
---<br>
Xi/extinit.c | 36 ++++++++++++++++++------------------<br>
1 file changed, 18 insertions(+), 18 deletions(-)<br>
<br>
diff --git a/Xi/extinit.c b/Xi/extinit.c<br>
index 619d0e4..02fffe5 100644<br>
--- a/Xi/extinit.c<br>
+++ b/Xi/extinit.c<br>
@@ -848,24 +848,24 @@ SBarrierEvent(xXIBarrierEvent * from,<br>
<br>
*to = *from;<br>
<br>
- swaps(&from->sequenceNumber);<br>
- swapl(&from->length);<br>
- swaps(&from->evtype);<br>
- swapl(&from->time);<br>
- swaps(&from->deviceid);<br>
- swaps(&from->sourceid);<br>
- swapl(&from->event);<br>
- swapl(&from->root);<br>
- swapl(&from->root_x);<br>
- swapl(&from->root_y);<br>
-<br>
- swapl(&from->dx.integral);<br>
- swapl(&from->dx.frac);<br>
- swapl(&from->dy.integral);<br>
- swapl(&from->dy.frac);<br>
- swapl(&from->dtime);<br>
- swapl(&from->barrier);<br>
- swapl(&from->eventid);<br>
+ swaps(&to->sequenceNumber);<br>
+ swapl(&to->length);<br>
+ swaps(&to->evtype);<br>
+ swapl(&to->time);<br>
+ swaps(&to->deviceid);<br>
+ swaps(&to->sourceid);<br>
+ swapl(&to->event);<br>
+ swapl(&to->root);<br>
+ swapl(&to->root_x);<br>
+ swapl(&to->root_y);<br>
+<br>
+ swapl(&to->dx.integral);<br>
+ swapl(&to->dx.frac);<br>
+ swapl(&to->dy.integral);<br>
+ swapl(&to->dy.frac);<br>
+ swapl(&to->dtime);<br>
+ swapl(&to->barrier);<br>
+ swapl(&to->eventid);<br>
}<br>
<br>
/** Event swapping function for XI2 events. */<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>