aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-07-02 17:06:24 +0200
committerNRK <nrk@disroot.org>2023-03-11 13:36:26 +0100
commit2434e83807360bfe43e3c404be12438f00a894ab (patch)
tree75e863131b1e5b4c55d6d2b4256bbdb84e0ddaa2 /commands.c
parent8c876199b1a7ce3d136809c7149dde91a51be3e8 (diff)
downloadnsxiv-2434e83807360bfe43e3c404be12438f00a894ab.tar.zst
make some changes prepping for clang-format
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c8
1 files changed, 4 insertions, 4 deletions
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;