aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-03-09 23:24:51 +0100
committerDrew DeVault <sir@cmpwn.com>2019-04-11 09:19:57 -0600
commit81e1489e7937b4fbf0b15a69627c653641325496 (patch)
treec9a894521927c1526e8c8ee7c1ed4e9a47b79dfb
parent8136605cfb72f2addc16c126519dd3a63e803ec2 (diff)
output-management-v1: fix wl_fixed_t conversion
-rw-r--r--types/wlr_output_management_v1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/types/wlr_output_management_v1.c b/types/wlr_output_management_v1.c
index 0f68f240..d16ea0cf 100644
--- a/types/wlr_output_management_v1.c
+++ b/types/wlr_output_management_v1.c
@@ -198,13 +198,14 @@ static void config_head_handle_set_transform(struct wl_client *client,
}
static void config_head_handle_set_scale(struct wl_client *client,
- struct wl_resource *config_head_resource, int32_t scale) {
+ struct wl_resource *config_head_resource, wl_fixed_t scale_fixed) {
struct wlr_output_configuration_head_v1 *config_head =
config_head_from_resource(config_head_resource);
if (config_head == NULL) {
return;
}
+ double scale = wl_fixed_to_double(scale_fixed);
if (scale <= 0) {
wl_resource_post_error(config_head_resource,
ZWLR_OUTPUT_CONFIGURATION_HEAD_V1_ERROR_INVALID_SCALE,