From 2434e83807360bfe43e3c404be12438f00a894ab Mon Sep 17 00:00:00 2001 From: NRK Date: Sat, 2 Jul 2022 21:06:24 +0600 Subject: make some changes prepping for clang-format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Berke Kocaoğlu --- commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index a4ae38d..db1cb09 100644 --- a/commands.c +++ b/commands.c @@ -326,10 +326,10 @@ bool ci_drag(arg_t drag_mode) while (true) { if (drag_mode == DRAG_ABSOLUTE) { - px = MIN(MAX(0.0, x - win.w*0.1), win.w*0.8) / (win.w*0.8) - * (win.w - img.w * img.zoom); - py = MIN(MAX(0.0, y - win.h*0.1), win.h*0.8) / (win.h*0.8) - * (win.h - img.h * img.zoom); + px = MIN(MAX(0.0, x - win.w*0.1), win.w*0.8) / + (win.w*0.8) * (win.w - img.w * img.zoom); + py = MIN(MAX(0.0, y - win.h*0.1), win.h*0.8) / + (win.h*0.8) * (win.h - img.h * img.zoom); } else { px = img.x + x - ox; py = img.y + y - oy; -- cgit v1.2.3-54-g00ecf