From 8a2bf0a70086907ef7fa86242888d90bb5df5f18 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Wed, 15 May 2024 11:35:13 +0100 Subject: [PATCH] Code style --- src/magnifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magnifier.c b/src/magnifier.c index 56485495..9d1a4e6b 100644 --- a/src/magnifier.c +++ b/src/magnifier.c @@ -179,7 +179,7 @@ magnify(struct output *output, struct wlr_buffer *output_buffer, struct wlr_box dst_box.height = height; if (fullscreen) { - src_box.x = CLAMP(ox - (ox / mag_scale), 0.0, + src_box.x = CLAMP(ox - (ox / mag_scale), 0.0, width * (mag_scale - 1.0) / mag_scale); src_box.y = CLAMP(oy - (oy / mag_scale), 0.0, height * (mag_scale - 1.0) / mag_scale);