Use the named SINCE_VERSION defines for version checks

To make our code more clear.
This commit is contained in:
Jasper St. Pierre 2014-08-07 16:43:11 -04:00 committed by Jason Ekstrand
parent d1ceecf112
commit 0013a29d5e
2 changed files with 3 additions and 3 deletions

View file

@ -3145,7 +3145,7 @@ bind_output(struct wl_client *client,
output->subpixel,
output->make, output->model,
output->transform);
if (version >= 2)
if (version >= WL_OUTPUT_SCALE_SINCE_VERSION)
wl_output_send_scale(resource,
output->current_scale);
@ -3157,7 +3157,7 @@ bind_output(struct wl_client *client,
mode->refresh);
}
if (version >= 2)
if (version >= WL_OUTPUT_DONE_SINCE_VERSION)
wl_output_send_done(resource);
}

View file

@ -1829,7 +1829,7 @@ bind_seat(struct wl_client *client, void *data, uint32_t version, uint32_t id)
caps |= WL_SEAT_CAPABILITY_TOUCH;
wl_seat_send_capabilities(resource, caps);
if (version >= 2)
if (version >= WL_SEAT_NAME_SINCE_VERSION)
wl_seat_send_name(resource, seat->seat_name);
}