<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 05/16/2012 02:18 AM, Scott Moreau wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This way, we don't have to use wl_fixed_to_int() for<br>
each call to weston_output_update_zoom(). The instance<br>
in notify_motion() was missed, which broke zoom.<br>
---<br>
src/compositor.c | 3 +++<br>
src/shell.c | 4 +---<br>
2 files changed, 4 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/compositor.c b/src/compositor.c<br>
index 788b1de..e5d89b5 100644<br>
--- a/src/compositor.c<br>
+++ b/src/compositor.c<br>
@@ -2363,6 +2363,9 @@ weston_output_update_zoom(struct weston_output *output, int x, int y)<br>
</blockquote>
<br></div>
You should also change the function prototype to make it clear it takes wl_fixed_t.<div class="HOEnZb"><div class="h5"><br>
</div></div></blockquote><div><br>
I thought the same initially but it actually takes int and converts internally to wl_fixed_t.. and stores them as int. There's no documentation on this so it's not clear on what the correct solution. All's I know is, zoom got broken in the process and this fixes it.<br>
<br><br>Scott<br>
</div></div><br>