aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-10-11 05:07:18 +0200
committerGitHub <noreply@github.com>2021-10-11 05:07:18 +0200
commit1449bfc5e960a61438c60a67c28da6d7c5bf2c7f (patch)
tree8836a07412b26650aa5773bd6ccf9d1a474553d6 /image.c
parent675db4bbb646ff51cc3ecc8ba7d587670872580a (diff)
downloadnsxiv-1449bfc5e960a61438c60a67c28da6d7c5bf2c7f.tar.zst
code-style: fix consistency issues all over the codebase (#94)
* remove duplicate comment * remove empty tabs and blank lines * move macros and globals ontop * comment to seprate function implementation * fix alignment * switch to *argv[] similar to other suckless code * kill all empty last lines * append comment to endif * reuse existing ARRLEN macro * comment fall through * use while (true) everywhere Co-authored-by: NRK <nrk@disroot.org>
Diffstat (limited to 'image.c')
-rw-r--r--image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/image.c b/image.c
index 43bd23c..0349d12 100644
--- a/image.c
+++ b/image.c
@@ -89,6 +89,7 @@ void exif_auto_orientate(const fileinfo_t *file)
switch (orientation) {
case 5:
imlib_image_orientate(1);
+ /* fall through */
case 2:
imlib_image_flip_vertical();
break;
@@ -97,6 +98,7 @@ void exif_auto_orientate(const fileinfo_t *file)
break;
case 7:
imlib_image_orientate(1);
+ /* fall through */
case 4:
imlib_image_flip_horizontal();
break;
@@ -916,4 +918,3 @@ bool img_frame_animate(img_t *img)
img->dirty = true;
return true;
}
-