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>
This commit is contained in:
3
image.c
3
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user