wayland: Use more explicit out parameter names

Prevent confusion between positional values and hotspot values.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
This commit is contained in:
Chris Cummins
2013-03-28 14:47:03 +00:00
committed by Rob Bradford
parent e707eadaf2
commit 6deff39f74
2 changed files with 8 additions and 8 deletions

View File

@ -183,8 +183,8 @@ gdk_wayland_cursor_get_image (GdkCursor *cursor)
struct wl_buffer *
_gdk_wayland_cursor_get_buffer (GdkCursor *cursor,
guint image_index,
int *x,
int *y,
int *hotspot_x,
int *hotspot_y,
int *w,
int *h)
{
@ -204,8 +204,8 @@ _gdk_wayland_cursor_get_buffer (GdkCursor *cursor,
image = wayland_cursor->wl_cursor->images[image_index];
*x = image->hotspot_x;
*y = image->hotspot_y;
*hotspot_x = image->hotspot_x;
*hotspot_y = image->hotspot_y;
*w = image->width;
*h = image->height;
@ -214,8 +214,8 @@ _gdk_wayland_cursor_get_buffer (GdkCursor *cursor,
}
else /* From pixbuf */
{
*x = wayland_cursor->pixbuf.hotspot_x;
*y = wayland_cursor->pixbuf.hotspot_y;
*hotspot_x = wayland_cursor->pixbuf.hotspot_x;
*hotspot_y = wayland_cursor->pixbuf.hotspot_y;
*w = wayland_cursor->pixbuf.width;
*h = wayland_cursor->pixbuf.height;