mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
color_representation_v1: fix swapped parameter for wp_color_representation_surface_v1_chroma_location_is_valid
This commit is contained in:
parent
cf67632c75
commit
e9e4896a21
1 changed files with 1 additions and 2 deletions
|
|
@ -180,8 +180,7 @@ static void color_repr_handle_set_chroma_location(struct wl_client *client,
|
|||
}
|
||||
|
||||
uint32_t version = wl_resource_get_version(resource);
|
||||
if (!wp_color_representation_surface_v1_chroma_location_is_valid(
|
||||
version, chroma_location)) {
|
||||
if (!wp_color_representation_surface_v1_chroma_location_is_valid(chroma_location, version)) {
|
||||
wl_resource_post_error(resource, WP_COLOR_REPRESENTATION_SURFACE_V1_ERROR_CHROMA_LOCATION,
|
||||
"Chroma location is not a valid enum value");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue