From 355bec163dc57dab5729610dc82a09e53539f31f Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sat, 28 Oct 2023 21:35:37 +0200 Subject: [PATCH] [fixup] Add wlr-output-management protocol (wl_fixed) --- src/output-management.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/output-management.c b/src/output-management.c index cb18893e..a1c6c164 100644 --- a/src/output-management.c +++ b/src/output-management.c @@ -93,9 +93,10 @@ static void output_head_transform(void* data, } static void output_head_scale(void* data, - struct zwlr_output_head_v1* output_head, wl_fixed_t scale) + struct zwlr_output_head_v1* output_head, wl_fixed_t scale_f) { - nvnc_trace("Got head scale: %.2f", (float)scale / 256); + double scale = wl_fixed_to_double(scale_f); + nvnc_trace("Got head scale: %.2f", scale); } static void output_head_finished(void* data,